mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fix alt+drag again
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
parent
00fe0c4ab0
commit
f9566b04a5
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ export const duplicateElements = (
|
||||||
}
|
}
|
||||||
|
|
||||||
elementsWithClones.splice(
|
elementsWithClones.splice(
|
||||||
index + (opts?.reverseOrder ? -1 : +1),
|
Math.max(index + (!!opts?.reverseOrder ? -1 : 1), 0),
|
||||||
0,
|
0,
|
||||||
...castArray(elements),
|
...castArray(elements),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue