mirror of
https://github.com/penpot/penpot.git
synced 2025-03-13 16:21:57 -05:00
🐛 Fixes problem with mov-objects
This commit is contained in:
parent
a096b0777f
commit
a2dbc40571
1 changed files with 2 additions and 1 deletions
|
@ -198,7 +198,8 @@
|
|||
[data {:keys [parent-id shapes index page-id component-id ignore-touched]}]
|
||||
(letfn [(is-valid-move? [objects shape-id]
|
||||
(let [invalid-targets (cph/calculate-invalid-targets shape-id objects)]
|
||||
(and (not (invalid-targets parent-id))
|
||||
(and (contains? objects shape-id)
|
||||
(not (invalid-targets parent-id))
|
||||
(cph/valid-frame-target shape-id parent-id objects))))
|
||||
|
||||
(insert-items [prev-shapes index shapes]
|
||||
|
|
Loading…
Add table
Reference in a new issue