merge branch 'fractional-indexing' of github.com:excalidraw/excalidraw into fractional-indexing

This commit is contained in:
Ryan Di 2023-12-05 13:07:23 +08:00
commit 5bc23d6dee

View File

@ -328,9 +328,7 @@ class Scene {
if (element.frameId) { if (element.frameId) {
this.insertElementAtIndex(element, this.getElementIndex(element.frameId)); this.insertElementAtIndex(element, this.getElementIndex(element.frameId));
} else { } else {
this.replaceAllElements( this.replaceAllElements([...this.elements, element]);
normalizeFractionalIndicies([...this.elements, element]),
);
} }
}; };