mirror of
https://github.com/penpot/penpot.git
synced 2025-05-21 08:46:10 +02:00
🐛 Avoid marking component as touched when moving into a group
This commit is contained in:
parent
0895a69bac
commit
87351000ae
2 changed files with 9 additions and 4 deletions
|
@ -924,11 +924,13 @@
|
|||
:operations [{:type :set
|
||||
:attr :constraints-h
|
||||
:val (spec/default-constraints-h
|
||||
(assoc obj :parent-id parent-id :frame-id frame-id))}
|
||||
(assoc obj :parent-id parent-id :frame-id frame-id))
|
||||
:ignore-touched true}
|
||||
{:type :set
|
||||
:attr :constraints-v
|
||||
:val (spec/default-constraints-v
|
||||
(assoc obj :parent-id parent-id :frame-id frame-id))}]}))
|
||||
(assoc obj :parent-id parent-id :frame-id frame-id))
|
||||
:ignore-touched true}]}))
|
||||
shapes-to-unconstraint)
|
||||
|
||||
u-unconstraint-change
|
||||
|
@ -939,10 +941,12 @@
|
|||
:id id
|
||||
:operations [{:type :set
|
||||
:attr :constraints-h
|
||||
:val (:constraints-h obj)}
|
||||
:val (:constraints-h obj)
|
||||
:ignore-touched true}
|
||||
{:type :set
|
||||
:attr :constraints-v
|
||||
:val (:constraints-v obj)}]}))
|
||||
:val (:constraints-v obj)
|
||||
:ignore-touched true}]}))
|
||||
shapes-to-unconstraint)
|
||||
|
||||
r-reg-change
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue