We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc228e2 commit 20e3b4dCopy full SHA for 20e3b4d
src/hooks/useMobileTouchMove.ts
@@ -45,7 +45,7 @@ export default function useMobileTouchMove(
45
} else {
46
offsetY *= SMOOTH_PTG;
47
}
48
- const offset = isHorizontal ? offsetX : offsetY;
+ const offset = Math.floor(isHorizontal ? offsetX : offsetY);
49
if (!callback(isHorizontal, offset, true) || Math.abs(offset) <= 0.1) {
50
clearInterval(intervalRef.current);
51
0 commit comments