Skip to content

Commit

Permalink
fixing tab bar swipe in cross axis (#622)
Browse files Browse the repository at this point in the history
Co-authored-by: Irvan <[email protected]>
  • Loading branch information
tenebrius and irvanherz authored Sep 29, 2024
1 parent 4821112 commit 2fa1d36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useTouchMove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2fa1d36

Please sign in to comment.