From bb5d0b63ef42aaf2d7e0a281565388e7e2ee1743 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Mon, 11 Jan 2021 09:37:27 +0100 Subject: [PATCH] :sparkles: Enable touched detection in width and height changes --- common/app/common/pages/changes.cljc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/app/common/pages/changes.cljc b/common/app/common/pages/changes.cljc index 1b963a69e4..fbbfcdeabc 100644 --- a/common/app/common/pages/changes.cljc +++ b/common/app/common/pages/changes.cljc @@ -389,8 +389,9 @@ ;; FIXME: it's difficult to tell if the geometry changes affect ;; an individual shape inside the component, or are for ;; the whole component (in which case we shouldn't set - ;; touched). For the moment we disable geometry touched. - (not= group :geometry-group)) + ;; touched). For the moment we disable geometry touched + ;; except width and height that seems to work well. + (or (not= group :geometry-group) (#{:width :height} attr))) (update :touched cph/set-touched-group group) (nil? val)