From 9ce02dff5b995d384bdc5ea43323a0d03ca754cc Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 7 Dec 2022 15:51:06 -0600 Subject: Add HorzSwipe gesture and integrate it into the ViewSelector --- src/state/models/shell-ui.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/state/models') 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 -- cgit 1.4.1