feat: update constraints on window resize

arnost/scroll-in-read-only-links
Arnošt Pleskot 12 months ago
parent d6710ded04
commit 1316d884fe
No known key found for this signature in database

@ -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 */

Loading…
Cancel
Save