From 2fa1d367999cc77d78f231968e7490dafccc8df2 Mon Sep 17 00:00:00 2001 From: tenebrius Date: Sun, 29 Sep 2024 16:31:54 +0800 Subject: [PATCH] fixing tab bar swipe in cross axis (#622) Co-authored-by: Irvan --- src/hooks/useTouchMove.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useTouchMove.ts b/src/hooks/useTouchMove.ts index 49e945b1..f8073ede 100644 --- a/src/hooks/useTouchMove.ts +++ b/src/hooks/useTouchMove.ts @@ -31,7 +31,7 @@ export default function useTouchMove( function onTouchMove(e: TouchEvent) { if (!touchPosition) return; - e.preventDefault(); + // e.preventDefault(); const { screenX, screenY } = e.touches[0]; setTouchPosition({ x: screenX, y: screenY }); const offsetX = screenX - touchPosition.x;