mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 09:26:28 +00:00
fix: replace all onmousedown/up with onpointerdown/up
onMouseDown can't be used in dropdown trigger
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user