mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 17:00:36 -05:00
⚡ Skip calculate children modifiers on move
This commit is contained in:
parent
95a2da5ebc
commit
c9dadce12a
1 changed files with 39 additions and 34 deletions
|
@ -176,6 +176,11 @@
|
|||
|
||||
(defn calc-child-modifiers
|
||||
[parent child modifiers ignore-constraints transformed-parent-rect]
|
||||
|
||||
(if (and (nil? (:resize-vector modifiers))
|
||||
(nil? (:resize-vector-2 modifiers)))
|
||||
;; If we don't have a resize modifier we return the same modifiers
|
||||
modifiers
|
||||
(let [constraints-h
|
||||
(if-not ignore-constraints
|
||||
(:constraints-h child (default-constraints-h child))
|
||||
|
@ -217,4 +222,4 @@
|
|||
:resize-transform-inverse (:resize-transform-inverse modifiers))
|
||||
|
||||
:always
|
||||
(clean-modifiers))))
|
||||
(clean-modifiers)))))
|
||||
|
|
Loading…
Reference in a new issue