fix: replace all onmousedown/up with onpointerdown/up

onMouseDown can't be used in dropdown trigger
This commit is contained in:
Tienson Qin
2024-03-12 15:44:30 +08:00
parent 84efd9f3e9
commit 5efb1536c2
24 changed files with 76 additions and 76 deletions

View File

@@ -726,7 +726,7 @@
(set! (.. el -style -transform)
(str "translate3d(" (if (neg? x) x 0) "px," (if (neg? y) (- y 10) 0) "px" ",0)"))))
[:<>
[:div.menu-backdrop {:on-mouse-down (fn [e] (hide-context-menu-and-clear-selection e))}]
[:div.menu-backdrop {:on-pointer-down (fn [e] (hide-context-menu-and-clear-selection e))}]
[:div#custom-context-menu
{:ref ref
:style {:z-index 999