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:
parent
e581cf8aeb
commit
0f62bcf25f
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue