0
Fork 0
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:
alonso.torres 2022-05-17 17:02:11 +02:00
parent 95a2da5ebc
commit c9dadce12a

View file

@ -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)))))