mirror of
https://github.com/penpot/penpot.git
synced 2025-02-11 09:38:56 -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?))
|
(st/emit! (ms/->MouseEvent :up ctrl? shift? alt?))
|
||||||
|
|
||||||
(when (= 2 (.-which event))
|
(when (= 2 (.-which event))
|
||||||
|
(do
|
||||||
|
(dom/prevent-default event)
|
||||||
(st/emit! dw/finish-pan
|
(st/emit! dw/finish-pan
|
||||||
::finish-positioning)))))
|
::finish-positioning))))))
|
||||||
|
|
||||||
on-pointer-down
|
on-pointer-down
|
||||||
(mf/use-callback
|
(mf/use-callback
|
||||||
|
|
Loading…
Add table
Reference in a new issue