perf(mobile): avoid waiting for js on swipes

This commit is contained in:
7w1 committed 2026-07-20 22:53:30 -05:00
1 parent 11fb67abab
commit d014eb4ea0
3 files changed
+3

No files matched your search

@@ -66,6 +66,7 @@ export function SwipeableChatWrapper({
rubberband: true,
filterTaps: true,
pointer: { capture: false },
eventOptions: { passive: true },
from: () => [x.get(), 0],
}
);
@@ -63,6 +63,7 @@ export function SwipeableOverlayWrapper({
rubberband: true,
filterTaps: true,
pointer: { capture: true },
eventOptions: { passive: true },
from: () => [x.get(), 0],
}
);
@@ -275,6 +275,7 @@ export function MobileNavDrawer({ nav, rail, bottomNav, children }: MobileNavDra
filterTaps: true,
tapsThreshold: DIRECTION_DEADZONE,
pointer: { capture: false },
eventOptions: { passive: true },
from: () => [readX(), 0],
}
);