mirror of
https://github.com/penpot/penpot.git
synced 2025-05-31 18:26:12 +02:00
Merge pull request #2056 from penpot/alotor-fix-resize
🐛 Fix problem with resize groups
This commit is contained in:
commit
72979e4535
3 changed files with 14 additions and 11 deletions
|
@ -276,8 +276,7 @@
|
|||
"Adjust modifiers so they adjust to the pixel grid"
|
||||
[modifiers shape]
|
||||
|
||||
(if (or (some? (:resize-transform modifiers))
|
||||
(some? (:resize-transform-2 modifiers)))
|
||||
(if (some? (:resize-transform modifiers))
|
||||
;; If we're working with a rotation we don't handle pixel precision because
|
||||
;; the transformation won't have the precision anyway
|
||||
modifiers
|
||||
|
@ -290,7 +289,8 @@
|
|||
(gsh/points->rect))
|
||||
|
||||
flip-x? (neg? (get-in modifiers [:resize-vector :x]))
|
||||
flip-y? (neg? (get-in modifiers [:resize-vector :y]))
|
||||
flip-y? (or (neg? (get-in modifiers [:resize-vector :y]))
|
||||
(neg? (get-in modifiers [:resize-vector-2 :y])))
|
||||
|
||||
path? (= :path (:type shape))
|
||||
vertical-line? (and path? (<= (:width raw-bounds) 0.01))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue