mirror of
https://github.com/penpot/penpot.git
synced 2026-09-06 12:09:24 +00:00
🐛 Fix preview of moving a copy of a flex component into its main
This commit is contained in:
parent
fe36a9e958
commit
b4b5aaafe4
@ -511,11 +511,15 @@
|
|||||||
[(assoc move-vector :x 0) :x]
|
[(assoc move-vector :x 0) :x]
|
||||||
|
|
||||||
:else
|
: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)]
|
||||||
(dwm/build-change-frame-modifiers objects selected target-frame drop-index cell-data)
|
|
||||||
(dwm/set-modifiers false false {:snap-ignore-axis snap-ignore-axis}))))))
|
(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
|
(->> move-stream
|
||||||
(rx/with-latest-from ms/mouse-position-alt)
|
(rx/with-latest-from ms/mouse-position-alt)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user