about summary refs log tree commit diff
path: root/src/view/shell
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-11-22 12:19:38 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-11-22 12:19:38 -0600
commitd608d67bfee9e5f31a85e8d2add52d6ffa6e5309 (patch)
treeff36d197c2ce2d02f477459cae649a290128a662 /src/view/shell
parent9ff78bbc43dfb0796168475f98475c54a62c7e8b (diff)
downloadvoidsky-d608d67bfee9e5f31a85e8d2add52d6ffa6e5309.tar.zst
Turn home button into a 'go back to start of nav history'
Diffstat (limited to 'src/view/shell')
-rw-r--r--src/view/shell/mobile/index.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/shell/mobile/index.tsx b/src/view/shell/mobile/index.tsx
index 9e2d92076..8ea79b92b 100644
--- a/src/view/shell/mobile/index.tsx
+++ b/src/view/shell/mobile/index.tsx
@@ -134,7 +134,7 @@ export const MobileShell: React.FC = observer(() => {
     if (store.nav.tab.current.url === '/') {
       scrollElRef.current?.scrollToOffset({offset: 0})
     } else {
-      store.nav.navigate('/')
+      store.nav.tab.goBackToZero()
     }
   }
   const onPressMenu = () => setMainMenuActive(true)