mirror of
https://github.com/penpot/penpot.git
synced 2025-05-11 15:46:38 +02:00
🎉 Use shift instead of ctrl/cmd to fix aspect ratio
This commit is contained in:
parent
346fb8fb11
commit
c9e7be28af
2 changed files with 5 additions and 4 deletions
|
@ -87,14 +87,14 @@
|
|||
|
||||
(->> ms/mouse-position
|
||||
(rx/filter #(> (gpt/distance % initial) 2))
|
||||
(rx/with-latest vector ms/mouse-position-ctrl)
|
||||
(rx/with-latest vector ms/mouse-position-shift)
|
||||
(rx/switch-map
|
||||
(fn [[point :as current]]
|
||||
(->> (snap/closest-snap-point page-id [shape] layout zoom point)
|
||||
(rx/map #(conj current %)))))
|
||||
(rx/map
|
||||
(fn [[_ ctrl? point]]
|
||||
#(update-drawing % point ctrl?)))
|
||||
(fn [[_ shift? point]]
|
||||
#(update-drawing % point shift?)))
|
||||
|
||||
(rx/take-until stoper))
|
||||
(rx/of common/handle-finish-drawing))))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue