mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
feat: set horizontal swipe thresholds to 60px
This commit is contained in:
1 parent
07cfaa145c
commit
afd2c184fc
3 files changed
+3
-3
No files matched your search
@@ -115,7 +115,7 @@ function AppShell() {
|
||||
{
|
||||
enabled: canOpenMoreWithSwipe(),
|
||||
edgeWidth: 32,
|
||||
threshold: 72,
|
||||
threshold: 60,
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ export function BottomSheet({
|
||||
|
||||
const { bind, swipeStyles } = useSwipeDismiss(onClose, {
|
||||
enabled: isOpen,
|
||||
threshold: 80,
|
||||
threshold: 60,
|
||||
})
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
@@ -18,7 +18,7 @@ interface SwipeState {
|
||||
|
||||
export function useSwipe(options: SwipeOptions = {}) {
|
||||
const {
|
||||
threshold = 80,
|
||||
threshold = 60,
|
||||
directionRatio = 1.5,
|
||||
enabled = true,
|
||||
onSwipeStart,
|
||||
|
||||
Reference in new issue
Block a user