Skip to content

Commit 2e84787

Browse files
committed
Clear inertiaStatus.resumeD{x,y} at the right time
1 parent 563298b commit 2e84787

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interact.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1719,7 +1719,6 @@
17191719
// stop inertia so that the next move will be a normal one
17201720
cancelFrame(inertiaStatus.i);
17211721
inertiaStatus.active = false;
1722-
inertiaStatus.resumeDx = inertiaStatus.resumeDy = 0;
17231722

17241723
if (PointerEvent) {
17251724
// add the pointer to the gesture object
@@ -4790,6 +4789,7 @@
47904789

47914790
pointerIsDown = snapStatus.locked = dragging = resizing = gesturing = false;
47924791
prepared = prevEvent = null;
4792+
inertiaStatus.resumeDx = inertiaStatus.resumeDy = 0;
47934793
// do not clear the downEvent so that it can be used to
47944794
// test for browser-simulated mouse events after touch
47954795

0 commit comments

Comments
 (0)