diff options
author | Zachary Zhang <zacharyzhang7@gmail.com> | 2024-07-10 13:28:21 -0400 |
---|---|---|
committer | Zachary Zhang <zacharyzhang7@gmail.com> | 2024-07-10 13:28:21 -0400 |
commit | 376eb907e68be8408f12fe79dd23a6e5f46ffe60 (patch) | |
tree | 1e56480951e0b940dd47b98412eb2bc3c6351946 /src/client/views/MainView.tsx | |
parent | 8922b3de6fcd53d5a09e719b2885e94ddb069c76 (diff) | |
parent | f23ea0cbde3c4193b8039f317fe71d965c8cbf40 (diff) |
Merge branch 'master' into zach-starter
Diffstat (limited to 'src/client/views/MainView.tsx')
-rw-r--r-- | src/client/views/MainView.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx index 0dcf2fa79..8a3b0f27c 100644 --- a/src/client/views/MainView.tsx +++ b/src/client/views/MainView.tsx @@ -556,16 +556,16 @@ export class MainView extends ObservableReactComponent<{}> { private longPressTimer: NodeJS.Timeout | undefined; globalPointerClick = action(() => { this.longPressTimer && clearTimeout(this.longPressTimer); - DocumentView.LongPress = false; + SnappingManager.SetLongPress(false); }); globalPointerMove = action((e: PointerEvent) => { if (e.movementX > 3 || e.movementY > 3) this.longPressTimer && clearTimeout(this.longPressTimer); }); globalPointerDown = action((e: PointerEvent) => { - DocumentView.LongPress = false; + SnappingManager.SetLongPress(false); this.longPressTimer = setTimeout( action(() => { - DocumentView.LongPress = true; + SnappingManager.SetLongPress(true); }), 1000 ); |