1
0
Fork 0

Fix edges not clickable

This commit is contained in:
Pabloader 2026-04-09 14:30:32 +00:00
parent f7dd0176c7
commit cd1177f1d0
1 changed files with 0 additions and 3 deletions

View File

@ -24,9 +24,6 @@ export function useSwipeNavigation(
const fromEdge = t.clientX < EDGE_THRESHOLD
|| t.clientX > window.innerWidth - EDGE_THRESHOLD;
start = fromEdge ? { x: t.clientX, y: t.clientY } : null;
if (fromEdge) {
e.preventDefault(); // Prevent scrolling on swipe
}
};
const onTouchMove = (e: TouchEvent) => {