Skip to content

Commit

Permalink
allow right click only on page
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc committed Feb 6, 2024
1 parent 22e22bf commit ccbca42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/tools/page.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
:y 0
:fill (:fill attrs)
:on-pointer-up pointer-handler
:on-pointer-down pointer-handler
:on-pointer-down #(when (= (.-button %) 2)
(pointer/event-handler % element))
:on-double-click pointer-handler})])
(map (fn [element] [tools/render element]) (merge child-elements))]]))

Expand Down

0 comments on commit ccbca42

Please sign in to comment.