aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
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.