mirror of
https://github.com/penpot/penpot.git
synced 2025-08-06 12:48:33 +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
|
@ -73,6 +73,18 @@
|
|||
(-> (l/lens alignment-activated?)
|
||||
(l/derive flags)))
|
||||
|
||||
(def canvas-mouse-position
|
||||
(-> (l/in [:pointer :canvas])
|
||||
(l/derive workspace)))
|
||||
|
||||
(def viewport-mouse-position
|
||||
(-> (l/in [:pointer :viewport])
|
||||
(l/derive workspace)))
|
||||
|
||||
(def window-mouse-position
|
||||
(-> (l/in [:pointer :window])
|
||||
(l/derive workspace)))
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue