mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 17:00:36 -05:00
🐛 Fix preview of moving a copy of a flex component into its main
This commit is contained in:
parent
fe36a9e958
commit
b4b5aaafe4
1 changed files with 8 additions and 4 deletions
|
@ -511,10 +511,14 @@
|
|||
[(assoc move-vector :x 0) :x]
|
||||
|
||||
:else
|
||||
[move-vector nil])]
|
||||
[move-vector nil])
|
||||
|
||||
(-> (dwm/create-modif-tree ids (ctm/move-modifiers move-vector))
|
||||
nesting-loop? (some #(cph/components-nesting-loop? objects (:id %) target-frame) shapes)]
|
||||
|
||||
(cond-> (dwm/create-modif-tree ids (ctm/move-modifiers move-vector))
|
||||
(not nesting-loop?)
|
||||
(dwm/build-change-frame-modifiers objects selected target-frame drop-index cell-data)
|
||||
:always
|
||||
(dwm/set-modifiers false false {:snap-ignore-axis snap-ignore-axis}))))))
|
||||
|
||||
(->> move-stream
|
||||
|
|
Loading…
Reference in a new issue