From 51f814635791d19e22f67312a3a75e24305d0381 Mon Sep 17 00:00:00 2001 From: David Luzar Date: Wed, 29 Apr 2020 22:49:36 +0200 Subject: [PATCH] disable pointer events on hidden menus in zen mode (#1511) --- src/components/LayerUI.scss | 4 ++++ src/components/LayerUI.tsx | 9 ++++++--- src/components/LockIcon.tsx | 2 +- src/components/Stack.tsx | 21 +++++++++++++++++---- 4 files changed, 28 insertions(+), 8 deletions(-) diff --git a/src/components/LayerUI.scss b/src/components/LayerUI.scss index 790aaf9b..2f1f0b5c 100644 --- a/src/components/LayerUI.scss +++ b/src/components/LayerUI.scss @@ -111,3 +111,7 @@ } } } + +.disable-pointerEvents { + pointer-events: none !important; +} diff --git a/src/components/LayerUI.tsx b/src/components/LayerUI.tsx index 3af1130b..ac9e111d 100644 --- a/src/components/LayerUI.tsx +++ b/src/components/LayerUI.tsx @@ -169,7 +169,10 @@ const LayerUI = ({
- + {renderCanvasActions()} {shouldRenderSelectedShapeActions && renderSelectedShapeActions()} @@ -201,7 +204,7 @@ const LayerUI = ({ {
@@ -225,7 +228,7 @@ const LayerUI = ({