mirror of
https://github.com/penpot/penpot.git
synced 2025-05-21 18:56:12 +02:00
🐛 Avoid rotating shape when scrolling
This commit is contained in:
parent
6780d17d2e
commit
369eab3b5f
2 changed files with 8 additions and 0 deletions
|
@ -237,4 +237,11 @@
|
|||
#(doseq [key keys]
|
||||
(events/unlistenByKey key)))))
|
||||
|
||||
(mf/use-layout-effect
|
||||
(mf/deps handle-mouse-wheel)
|
||||
(fn []
|
||||
(let [keys [(events/listen (mf/ref-val ref) EventType.WHEEL handle-mouse-wheel #js {:pasive false})]]
|
||||
#(doseq [key keys]
|
||||
(events/unlistenByKey key)))))
|
||||
|
||||
[:> :input props]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue