From 662a4ef23bb6ae43f1a27aca1b243d6a27fbf187 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Mon, 5 Dec 2022 10:39:34 -0600 Subject: [PATCH] Fix 'swipe back to nothing' bug --- src/view/shell/mobile/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/view/shell/mobile/index.tsx b/src/view/shell/mobile/index.tsx index fed7d026..d653944d 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)