about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-12-05 10:39:34 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-12-05 10:39:34 -0600
commit662a4ef23bb6ae43f1a27aca1b243d6a27fbf187 (patch)
tree1f13465cd227cd988ad5c95e9855d683e8d2e2aa /src
parentb08afc12fe96ef0501cee2f65664d7ac67b3cd1c (diff)
downloadvoidsky-662a4ef23bb6ae43f1a27aca1b243d6a27fbf187.tar.zst
Fix 'swipe back to nothing' bug
Diffstat (limited to 'src')
-rw-r--r--src/view/shell/mobile/index.tsx1
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)