Fix alt+drag again

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
Mark Tolmacs 2025-03-19 16:03:41 +01:00
parent 00fe0c4ab0
commit f9566b04a5
No known key found for this signature in database

View file

@ -194,7 +194,7 @@ export const duplicateElements = (
}
elementsWithClones.splice(
index + (opts?.reverseOrder ? -1 : +1),
Math.max(index + (!!opts?.reverseOrder ? -1 : 1), 0),
0,
...castArray(elements),
);