diff --git a/src/hooks/useMobileTouchMove.ts b/src/hooks/useMobileTouchMove.ts index 7d61761..d563eb2 100644 --- a/src/hooks/useMobileTouchMove.ts +++ b/src/hooks/useMobileTouchMove.ts @@ -45,7 +45,7 @@ export default function useMobileTouchMove( } else { offsetY *= SMOOTH_PTG; } - const offset = isHorizontal ? offsetX : offsetY; + const offset = Math.floor(isHorizontal ? offsetX : offsetY); if (!callback(isHorizontal, offset, true) || Math.abs(offset) <= 0.1) { clearInterval(intervalRef.current); }