fix: disable overscroll on pinch-to-zoom

arnost/scroll-in-read-only-links
Arnošt Pleskot 1 year ago
parent b5bf346229
commit 213134bbca
No known key found for this signature in database

@ -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,
),
); );
} }
}); });

Loading…
Cancel
Save