From 9c2cbb2a4800d29d6d9dc4c26f6882a908cabd42 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Fri, 22 Mar 2024 12:08:34 +0100 Subject: [PATCH] :bug: Fix problem with scaling constraints --- common/src/app/common/geom/shapes/constraints.cljc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/src/app/common/geom/shapes/constraints.cljc b/common/src/app/common/geom/shapes/constraints.cljc index 3a2ab58b2..120d22290 100644 --- a/common/src/app/common/geom/shapes/constraints.cljc +++ b/common/src/app/common/geom/shapes/constraints.cljc @@ -326,7 +326,9 @@ reset-modifiers? (and (gpo/axis-aligned? parent-bounds) (gpo/axis-aligned? child-bounds) - (gpo/axis-aligned? transformed-parent-bounds)) + (gpo/axis-aligned? transformed-parent-bounds) + (not= :scale constraints-h) + (not= :scale constraints-v)) modifiers (if reset-modifiers?