Browse Source

enhance(ux): pointer down to trigger the hide context menu and block selections

charlie 1 year ago
parent
commit
5b0051adef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/frontend/components/container.cljs

+ 1 - 1
src/main/frontend/components/container.cljs

@@ -878,7 +878,7 @@
   rum/reactive
   (mixins/event-mixin
    (fn [state]
-     (mixins/listen state js/window "click" hide-context-menu-and-clear-selection)
+     (mixins/listen state js/window "pointerdown" hide-context-menu-and-clear-selection)
      (mixins/listen state js/window "keydown"
                     (fn [e]
                       (when (= 27 (.-keyCode e))