Fix 'swipe back to nothing' bug
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user