mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Maybe fix group alt+drag
This commit is contained in:
parent
d1b0aa63c4
commit
d50173f4fa
1 changed files with 7 additions and 3 deletions
|
@ -245,7 +245,11 @@ export const duplicateElements = (
|
||||||
: [element],
|
: [element],
|
||||||
);
|
);
|
||||||
|
|
||||||
const targetIndex = findLastIndex(elementsWithClones, (el) => {
|
const targetIndex = opts?.reverseOrder
|
||||||
|
? elementsWithClones.findIndex((el) => {
|
||||||
|
return el.groupIds?.includes(groupId);
|
||||||
|
})
|
||||||
|
: findLastIndex(elementsWithClones, (el) => {
|
||||||
return el.groupIds?.includes(groupId);
|
return el.groupIds?.includes(groupId);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue