0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-12 15:51:37 -05:00

🎉 Use shift instead of ctrl/cmd to fix aspect ratio

This commit is contained in:
Andrés Moya 2021-05-17 14:19:44 +02:00
parent 346fb8fb11
commit c9e7be28af
2 changed files with 5 additions and 4 deletions

View file

@ -5,7 +5,8 @@
### :sparkles: New features
- Transform shapes to path on double click
- Transform shapes to path on double click.
- Use shift instead of ctrl/cmd to keep aspect ratio [Taiga 1697](https://tree.taiga.io/project/penpot/issue/1697).
### :bug: Bugs fixed
### :arrow_up: Deps updates

View file

@ -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))))))