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

mrazator/test-fractional-index-and-granular-history
Ryan Di 1 year ago
commit 5bc23d6dee

@ -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]),
);
} }
}; };

Loading…
Cancel
Save