0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 09:08:31 -05:00

🐛 Fix touched detection for texts

This commit is contained in:
Andrés Moya 2023-05-10 17:07:29 +02:00 committed by Andrés Moya
parent 54ab57d8f6
commit eb0d499ddf

View file

@ -360,7 +360,8 @@
ignore (:ignore-touched op)
ignore-geometry (:ignore-geometry op)
is-geometry? (and (or (= group :geometry-group)
(and (= group :content-group) (= (:type shape) :path)))
(and (= group :content-group) (= (:type shape) :path))
(= attr :position-data))
(not (#{:width :height} attr))) ;; :content in paths are also considered geometric
;; TODO: the check of :width and :height probably may be removed
;; after the check added in data/workspace/modifiers/check-delta