mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: update constraints on window resize
This commit is contained in:
parent
d6710ded04
commit
1316d884fe
1 changed files with 5 additions and 1 deletions
|
@ -2486,7 +2486,11 @@ class App extends React.Component<AppProps, AppState> {
|
||||||
if (!supportsResizeObserver) {
|
if (!supportsResizeObserver) {
|
||||||
this.refreshEditorBreakpoints();
|
this.refreshEditorBreakpoints();
|
||||||
}
|
}
|
||||||
|
if (this.state.scrollConstraints) {
|
||||||
|
this.setState((state) => constrainScrollState(state));
|
||||||
|
} else {
|
||||||
this.setState({});
|
this.setState({});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/** generally invoked only if fullscreen was invoked programmatically */
|
/** generally invoked only if fullscreen was invoked programmatically */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue