fix: disable overscroll on pinch-to-zoom

This commit is contained in:
Arnošt Pleskot 2024-02-09 16:17:58 +01:00
parent b5bf346229
commit 213134bbca
No known key found for this signature in database

View file

@ -4270,7 +4270,8 @@ class App extends React.Component<AppProps, AppState> {
const initialScale = gesture.initialScale; const initialScale = gesture.initialScale;
if (initialScale) { if (initialScale) {
this.setState((state) => this.setState((state) =>
constrainScrollState({ constrainScrollState(
{
...state, ...state,
...getStateForZoom( ...getStateForZoom(
{ {
@ -4280,7 +4281,9 @@ class App extends React.Component<AppProps, AppState> {
}, },
state, state,
), ),
}), },
false,
),
); );
} }
}); });