mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 13:41:38 +02:00
Start use one unique stream for send user events (mouse and keyboard).
This commit is contained in:
parent
bc1ffc7f4f
commit
7a7059e172
12 changed files with 225 additions and 104 deletions
|
@ -92,7 +92,7 @@
|
|||
(let [prev-zoom @refs/selected-zoom
|
||||
dom (mx/ref-node own "workspace-canvas")
|
||||
scroll-position (scroll/get-current-position-absolute dom)
|
||||
mouse-point @streams/mouse-viewport-a]
|
||||
mouse-point @refs/viewport-mouse-position]
|
||||
(dom/prevent-default event)
|
||||
(dom/stop-propagation event)
|
||||
(if (pos? (.-deltaY event))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue