feat: set horizontal swipe thresholds to 60px

This commit is contained in:
Chris Scott committed 2026-04-30 13:02:48 +00:00
1 parent 07cfaa145c
commit afd2c184fc
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -115,7 +115,7 @@ function AppShell() {
{
enabled: canOpenMoreWithSwipe(),
edgeWidth: 32,
threshold: 72,
threshold: 60,
}
)
+1 -1
View File
@@ -25,7 +25,7 @@ export function BottomSheet({
const { bind, swipeStyles } = useSwipeDismiss(onClose, {
enabled: isOpen,
threshold: 80,
threshold: 60,
})
useEffect(() => {
+1 -1
View File
@@ -18,7 +18,7 @@ interface SwipeState {
export function useSwipe(options: SwipeOptions = {}) {
const {
threshold = 80,
threshold = 60,
directionRatio = 1.5,
enabled = true,
onSwipeStart,