mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-20 00:51:17 -08:00
perf(mobile): avoid waiting for js on swipes
This commit is contained in:
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],
|
||||
}
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user