ng-iScroll icon indicating copy to clipboard operation
ng-iScroll copied to clipboard

Scroll works but get to the top when release mouse

Open marcdelalonde opened this issue 11 years ago • 5 comments

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

marcdelalonde avatar Nov 28 '13 15:11 marcdelalonde

I am experiencing the same issue.

gaga1227 avatar Jan 27 '14 05:01 gaga1227

It seems to be the result of the 'snap' option, turning it off removed that unexpected experience for me.

gaga1227 avatar Jan 27 '14 23:01 gaga1227

I got the same issue actually ... but i am on a jquery layout pane center !

patfrat avatar Aug 07 '14 13:08 patfrat

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.

CronGM avatar Aug 20 '14 23:08 CronGM

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();
            });

monkeymonk avatar Sep 24 '14 15:09 monkeymonk