0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 09:08:31 -05:00

🐛 Fixed problem with mouse wheel button

This commit is contained in:
alonso.torres 2020-12-03 10:47:58 +01:00
parent e581cf8aeb
commit 0f62bcf25f

View file

@ -263,8 +263,10 @@
(st/emit! (ms/->MouseEvent :up ctrl? shift? alt?))
(when (= 2 (.-which event))
(st/emit! dw/finish-pan
::finish-positioning)))))
(do
(dom/prevent-default event)
(st/emit! dw/finish-pan
::finish-positioning))))))
on-pointer-down
(mf/use-callback