Merge pull request #551 from maximeloizeau/touch-scrolling-bug
Touch scrolling bug
This commit is contained in:
commit
b3880ca638
@ -128,6 +128,11 @@ function bindTouchHandler(element, i, supportsTouch, supportsIePointer) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!speed.x && !speed.y) {
|
||||||
|
clearInterval(easingLoop);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (Math.abs(speed.x) < 0.01 && Math.abs(speed.y) < 0.01) {
|
if (Math.abs(speed.x) < 0.01 && Math.abs(speed.y) < 0.01) {
|
||||||
clearInterval(easingLoop);
|
clearInterval(easingLoop);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user