aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorLionel Han <47760119+IGoByJoe@users.noreply.github.com>2020-06-10 22:43:35 -0700
committerLionel Han <47760119+IGoByJoe@users.noreply.github.com>2020-06-10 22:43:35 -0700
commitb13adb6e2620d80c019c7c8f6d344ba5ca2fcec2 (patch)
treefd6605f02d83e8c9fcaaf0bbb7dbce863a886eb9 /src/client
parent69fc5cff21c212a6eca9d125836844eea018fad0 (diff)
finished up image upload and fixed bugs with pathbar and clicking workspaces twice
Diffstat (limited to 'src/client')
-rw-r--r--src/client/views/GestureOverlay.tsx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/client/views/GestureOverlay.tsx b/src/client/views/GestureOverlay.tsx
index a11c97b09..8cf2cdf55 100644
--- a/src/client/views/GestureOverlay.tsx
+++ b/src/client/views/GestureOverlay.tsx
@@ -115,12 +115,12 @@ export default class GestureOverlay extends Touchable {
onReactTouchStart = (te: React.TouchEvent) => {
document.removeEventListener("touchmove", this.onReactHoldTouchMove);
document.removeEventListener("touchend", this.onReactHoldTouchEnd);
- // if (RadialMenu.Instance._display === true) {
- // te.preventDefault();
- // te.stopPropagation();
- // RadialMenu.Instance.closeMenu();
- // return;
- // }
+ if (RadialMenu.Instance?._display === true) {
+ te.preventDefault();
+ te.stopPropagation();
+ RadialMenu.Instance.closeMenu();
+ return;
+ }
// this chunk adds new touch targets to a map of pointer events; this helps us keep track of individual fingers
// so that we can know, for example, if two fingers are pinching out or in.