mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-10-18 05:29:54 +02:00
feat: update constraints on window resize
This commit is contained in:
@@ -2486,7 +2486,11 @@ class App extends React.Component<AppProps, AppState> {
|
||||
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 */
|
||||
|
Reference in New Issue
Block a user