diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-12-05 10:39:34 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-12-05 10:39:34 -0600 |
commit | 662a4ef23bb6ae43f1a27aca1b243d6a27fbf187 (patch) | |
tree | 1f13465cd227cd988ad5c95e9855d683e8d2e2aa /src | |
parent | b08afc12fe96ef0501cee2f65664d7ac67b3cd1c (diff) | |
download | voidsky-662a4ef23bb6ae43f1a27aca1b243d6a27fbf187.tar.zst |
Fix 'swipe back to nothing' bug
Diffstat (limited to 'src')
-rw-r--r-- | src/view/shell/mobile/index.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/view/shell/mobile/index.tsx b/src/view/shell/mobile/index.tsx index fed7d0269..d653944d1 100644 --- a/src/view/shell/mobile/index.tsx +++ b/src/view/shell/mobile/index.tsx @@ -195,6 +195,7 @@ export const MobileShell: React.FC = observer(() => { // = const goBack = () => store.nav.tab.goBack() const swipeGesture = Gesture.Pan() + .enabled(store.nav.tab.canGoBack) .onUpdate(e => { if (store.nav.tab.canGoBack) { swipeGestureInterp.value = Math.max(e.translationX / winDim.width, 0) |