diff options
author | A.J. Shulman <Shulman.aj@gmail.com> | 2024-07-17 14:59:45 -0400 |
---|---|---|
committer | A.J. Shulman <Shulman.aj@gmail.com> | 2024-07-17 14:59:45 -0400 |
commit | b7b3604f54ff5174b7f9a2f115362ea11d1a83ae (patch) | |
tree | 2378a214b6f624451228903808d06c9337142feb /src/client/views/MainView.tsx | |
parent | dd379c9e4c4c214b2ed14e3fd9a5f966e4f03b48 (diff) | |
parent | 9da1206079b2f20274a720c4e62cf1d6e063e7ac (diff) |
Merge branch 'master' into aj-system-message
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 31d88fb87..ef1bcfb64 100644 --- a/src/client/views/MainView.tsx +++ b/src/client/views/MainView.tsx @@ -555,16 +555,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 ); |