aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/MainView.tsx
diff options
context:
space:
mode:
authoreleanor-park <113556828+eleanor-park@users.noreply.github.com>2024-07-11 11:48:44 -0400
committerGitHub <noreply@github.com>2024-07-11 11:48:44 -0400
commit2bf43f9906f84a600e6d5ea9dfc6c1af0ee3fd42 (patch)
tree19895e85364e58246ec2869459e9d29f6621526e /src/client/views/MainView.tsx
parentf33e6c9e191092e6050f980892b4404ff0d0a1f2 (diff)
parent4438e7fe202ff4091b26f073122e7866ec9abb46 (diff)
Merge pull request #316 from brown-dash/master
updating gpt draw branch
Diffstat (limited to 'src/client/views/MainView.tsx')
-rw-r--r--src/client/views/MainView.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx
index dd11ac684..30720a3a2 100644
--- a/src/client/views/MainView.tsx
+++ b/src/client/views/MainView.tsx
@@ -559,16 +559,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
);