about summary refs log tree commit diff
path: root/src/state/models/shell-ui.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-12-07 15:51:06 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-12-07 15:51:06 -0600
commit9ce02dff5b995d384bdc5ea43323a0d03ca754cc (patch)
treeda40c795ca8358d74659d40ad5369c5a14534f79 /src/state/models/shell-ui.ts
parent79d5708b695be94750af4c49785a7de0801dc2ae (diff)
downloadvoidsky-9ce02dff5b995d384bdc5ea43323a0d03ca754cc.tar.zst
Add HorzSwipe gesture and integrate it into the ViewSelector
Diffstat (limited to 'src/state/models/shell-ui.ts')
-rw-r--r--src/state/models/shell-ui.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/state/models/shell-ui.ts b/src/state/models/shell-ui.ts
index fa8e3c18f..b3fe5104f 100644
--- a/src/state/models/shell-ui.ts
+++ b/src/state/models/shell-ui.ts
@@ -66,6 +66,7 @@ export interface ComposerOpts {
 }
 
 export class ShellUiModel {
+  isViewControllingSwipes = false
   isModalActive = false
   activeModal:
     | ConfirmModel
@@ -80,6 +81,10 @@ export class ShellUiModel {
     makeAutoObservable(this)
   }
 
+  setViewControllingSwipes(v: boolean) {
+    this.isViewControllingSwipes = v
+  }
+
   openModal(
     modal:
       | ConfirmModel