ng-iScroll
ng-iScroll copied to clipboard
Scroll works but get to the top when release mouse
I'm running ng-iscroll on my angular app, the scroll seems to "work" but get to the top when i release the mouse...
AngularJS v1.2.2 iScroll v4.2.5
I am experiencing the same issue.
It seems to be the result of the 'snap' option, turning it off removed that unexpected experience for me.
I got the same issue actually ... but i am on a jquery layout pane center !
Having the same issue with an Angular/JQM app, and running the demos in the mobile emulator inside Google Chrome shows the same erratic behaviour.
Same issue here, it seems to work properly when I remove this part:
// watch for 'ng-iscroll' directive in html code
scope.$watch(attr.ngIscroll, function ()
{
setTimeout(setScroll, ngiScroll_timeout);
});
Edit: It seem that we have to $watch once so :
// watch for 'ng-iscroll' directive in html code
var listener = scope.$watch(attr.ngIscroll, function ()
{
setTimeout(setScroll, ngiScroll_timeout);
// unbind watch (see http://stackoverflow.com/questions/19394204/unbinding-watch-in-angularjs-after-called)
listener();
});