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:
commit
8831f3241c
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
Reference in a new issue