Virtual whiteboard for sketching hand-drawn like diagrams
fix: Don't scroll to content on INIT websocket message (#3291)
Christopher Chedeau127c1be6ada3
diff --git a/src/excalidraw-app/collab/CollabWrapper.tsx b/src/excalidraw-app/collab/CollabWrapper.tsxindex 0d7a90b8ea..9b353eb68b 100644--- a/src/excalidraw-app/collab/CollabWrapper.tsx+++ b/src/excalidraw-app/collab/CollabWrapper.tsx@@ -448,15 +448,8 @@ class CollabWrapper extends PureComponent<Props, CollabState> {private handleRemoteSceneUpdate = (elements: ReconciledElements,- {- init = false,- initFromSnapshot = false,- }: { init?: boolean; initFromSnapshot?: boolean } = {},+ { init = false }: { init?: boolean } = {},) => {- if (init || initFromSnapshot) {- this.excalidrawAPI.setScrollToContent(elements);- }-this.excalidrawAPI.updateScene({elements,commitToHistory: !!init,