Skip to content

Commit

Permalink
fix prevent default on mouse action
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc committed Oct 31, 2023
1 parent 7484e00 commit 16b31a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renderer/utils/mouse.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
mouse movement."
[event element]
(.stopPropagation event)
(.preventDefault event)
;; Disable native zoom on canvas
(when (and (.-ctrlKey event) (.-deltaY event))
(.preventDefault event))
(rf/dispatch-sync [:pointer-event {:element element
:target (.-target event)
:type (keyword (.-type event))
Expand Down

0 comments on commit 16b31a8

Please sign in to comment.