diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-11-22 12:19:38 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-11-22 12:19:38 -0600 |
commit | d608d67bfee9e5f31a85e8d2add52d6ffa6e5309 (patch) | |
tree | ff36d197c2ce2d02f477459cae649a290128a662 /src/state/models | |
parent | 9ff78bbc43dfb0796168475f98475c54a62c7e8b (diff) | |
download | voidsky-d608d67bfee9e5f31a85e8d2add52d6ffa6e5309.tar.zst |
Turn home button into a 'go back to start of nav history'
Diffstat (limited to 'src/state/models')
-rw-r--r-- | src/state/models/navigation.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/state/models/navigation.ts b/src/state/models/navigation.ts index 1e639b0f3..6eb13a62a 100644 --- a/src/state/models/navigation.ts +++ b/src/state/models/navigation.ts @@ -107,6 +107,12 @@ export class NavigationTabModel { } } + goBackToZero() { + if (this.canGoBack) { + this.index = 0 + } + } + goForward() { if (this.canGoForward) { this.index++ |