mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 02:16:30 +00:00
fix: replace all onmousedown/up with onpointerdown/up
onMouseDown can't be used in dropdown trigger
This commit is contained in:
@@ -295,7 +295,7 @@
|
||||
[:button.asset-action-btn.px-1
|
||||
{:title (t :asset/copy)
|
||||
:tabIndex "-1"
|
||||
:on-mouse-down util/stop
|
||||
:on-pointer-down util/stop
|
||||
:on-click (fn [e]
|
||||
(util/stop e)
|
||||
(-> (util/copy-image-to-clipboard (common-config/remove-asset-protocol asset-path))
|
||||
@@ -305,7 +305,7 @@
|
||||
[:button.asset-action-btn.px-1
|
||||
{:title (t :asset/maximize)
|
||||
:tabIndex "-1"
|
||||
:on-mouse-down util/stop
|
||||
:on-pointer-down util/stop
|
||||
:on-click open-lightbox}
|
||||
|
||||
(ui/icon "maximize")]]
|
||||
|
||||
Reference in New Issue
Block a user