diff --git a/packages/excalidraw/components/App.tsx b/packages/excalidraw/components/App.tsx index 0539df14a..3726bae63 100644 --- a/packages/excalidraw/components/App.tsx +++ b/packages/excalidraw/components/App.tsx @@ -2486,7 +2486,11 @@ class App extends React.Component { if (!supportsResizeObserver) { this.refreshEditorBreakpoints(); } - this.setState({}); + if (this.state.scrollConstraints) { + this.setState((state) => constrainScrollState(state)); + } else { + this.setState({}); + } }); /** generally invoked only if fullscreen was invoked programmatically */