0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 08:11:30 -05:00

Merge pull request #957 from penpot/change-resize-key

🎉 Use shift instead of ctrl/cmd to fix aspect ratio
This commit is contained in:
Andrey Antukh 2021-05-19 12:06:26 +02:00 committed by GitHub
commit 8831f3241c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -20,6 +20,7 @@
- Refactor dashboard state management (improves considerably the performance when you have a dashboard with a big collection of projects and files).
- Translate automatic names of new files and projects.
- 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

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