0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-25 07:58:49 -05:00

Enable touched detection in width and height changes

This commit is contained in:
Andrés Moya 2021-01-11 09:37:27 +01:00 committed by Alonso Torres
parent 999e2f6633
commit bb5d0b63ef

View file

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