diff options
author | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2024-07-30 13:05:32 -0400 |
---|---|---|
committer | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2024-07-30 13:05:32 -0400 |
commit | cb1a26bf81129445d43badcf5b46171a5d8941b3 (patch) | |
tree | 7a4e6bb5ae863fb0ae47063d482fcbe65a097712 /src/client/views/MainView.tsx | |
parent | 598bc954df87bc6d5875c404cefc6f26b51f6afe (diff) | |
parent | ac06e2affd615b926e240a2b15279d3c60360bd4 (diff) |
Merge branch 'master' of https://github.com/brown-dash/Dash-Web into nathan-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 eb4f4761e..dd5884cf2 100644 --- a/src/client/views/MainView.tsx +++ b/src/client/views/MainView.tsx @@ -566,16 +566,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 ); |