mirror of
https://github.com/penpot/penpot.git
synced 2025-07-19 11:27:18 +02:00
🐛 Fix problem with paste order
This commit is contained in:
parent
420178e620
commit
0935390761
2 changed files with 10 additions and 3 deletions
|
@ -2013,6 +2013,7 @@
|
|||
(d/index-by :prev-id))
|
||||
|
||||
selected (:selected pdata)
|
||||
|
||||
objects (:objects pdata)
|
||||
|
||||
position (deref ms/mouse-position)
|
||||
|
@ -2036,6 +2037,10 @@
|
|||
index
|
||||
0)
|
||||
|
||||
selected (if (and (ctl/flex-layout? page-objects parent-id) (not (ctl/reverse? page-objects parent-id)))
|
||||
(into (d/ordered-set) (reverse selected))
|
||||
selected)
|
||||
|
||||
objects (update-vals objects (partial process-shape file-id frame-id parent-id))
|
||||
|
||||
all-objects (merge page-objects objects)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue