From afd2c184fc379c61d765465da88b3088689e807a Mon Sep 17 00:00:00 2001 From: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com> Date: Thu, 30 Apr 2026 13:02:09 +0000 Subject: [PATCH] feat: set horizontal swipe thresholds to 60px --- frontend/src/App.tsx | 2 +- frontend/src/components/ui/bottom-sheet.tsx | 2 +- frontend/src/hooks/useSwipe.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index b4df3cde..b7bcff08 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -115,7 +115,7 @@ function AppShell() { { enabled: canOpenMoreWithSwipe(), edgeWidth: 32, - threshold: 72, + threshold: 60, } ) diff --git a/frontend/src/components/ui/bottom-sheet.tsx b/frontend/src/components/ui/bottom-sheet.tsx index ec3978d1..024aa463 100644 --- a/frontend/src/components/ui/bottom-sheet.tsx +++ b/frontend/src/components/ui/bottom-sheet.tsx @@ -25,7 +25,7 @@ export function BottomSheet({ const { bind, swipeStyles } = useSwipeDismiss(onClose, { enabled: isOpen, - threshold: 80, + threshold: 60, }) useEffect(() => { diff --git a/frontend/src/hooks/useSwipe.ts b/frontend/src/hooks/useSwipe.ts index 13dcfcd4..27211baa 100644 --- a/frontend/src/hooks/useSwipe.ts +++ b/frontend/src/hooks/useSwipe.ts @@ -18,7 +18,7 @@ interface SwipeState { export function useSwipe(options: SwipeOptions = {}) { const { - threshold = 80, + threshold = 60, directionRatio = 1.5, enabled = true, onSwipeStart,