feat: enforce constrains on setting constrains
This commit is contained in:
parent
485c57fd59
commit
f82363aae9
@ -7661,8 +7661,11 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
height === prevState.height &&
|
height === prevState.height &&
|
||||||
cursorButton === prevState.cursorButton;
|
cursorButton === prevState.cursorButton;
|
||||||
|
|
||||||
// If the state hasn't changed or the scroll constraints are not defined, return null
|
// If the state hasn't changed and scrollConstraints didn't just get defined, return null
|
||||||
if (!scrollConstraints || stateUnchanged) {
|
if (
|
||||||
|
!scrollConstraints ||
|
||||||
|
(stateUnchanged && (prevState.scrollConstraints || !scrollConstraints))
|
||||||
|
) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user