Merge pull request #551 from maximeloizeau/touch-scrolling-bug

Touch scrolling bug
This commit is contained in:
Jun 2016-08-12 08:58:42 +09:00 committed by GitHub
commit b3880ca638

View File

@ -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;