mirror of
https://github.com/penpot/penpot.git
synced 2025-05-18 13:36:11 +02:00
🐛 Fix problem with snap-pixel on resize
This commit is contained in:
parent
48615ca5b2
commit
d2a5344407
2 changed files with 11 additions and 2 deletions
|
@ -282,9 +282,9 @@
|
|||
|
||||
(defn set-pixel-precision
|
||||
"Adjust modifiers so they adjust to the pixel grid"
|
||||
[modifiers shape]
|
||||
[{:keys [resize-transform] :as modifiers} shape]
|
||||
|
||||
(if (some? (:resize-transform modifiers))
|
||||
(if (and (some? resize-transform) (not (gmt/unit? resize-transform)))
|
||||
;; If we're working with a rotation we don't handle pixel precision because
|
||||
;; the transformation won't have the precision anyway
|
||||
modifiers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue