mirror of
https://github.com/penpot/penpot.git
synced 2025-01-25 07:58:49 -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
|
(defn calc-child-modifiers
|
||||||
[parent child modifiers ignore-constraints transformed-parent-rect]
|
[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
|
(let [constraints-h
|
||||||
(if-not ignore-constraints
|
(if-not ignore-constraints
|
||||||
(:constraints-h child (default-constraints-h child))
|
(:constraints-h child (default-constraints-h child))
|
||||||
|
@ -217,4 +222,4 @@
|
||||||
:resize-transform-inverse (:resize-transform-inverse modifiers))
|
:resize-transform-inverse (:resize-transform-inverse modifiers))
|
||||||
|
|
||||||
:always
|
:always
|
||||||
(clean-modifiers))))
|
(clean-modifiers)))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue