fix: add scroll constraints to pinch-to-zoom in safari
This commit is contained in:
parent
82aa1cf19d
commit
4c62eef7da
@ -4269,7 +4269,9 @@ class App extends React.Component<AppProps, AppState> {
|
||||
|
||||
const initialScale = gesture.initialScale;
|
||||
if (initialScale) {
|
||||
this.setState((state) => ({
|
||||
this.setState((state) =>
|
||||
constrainScrollState({
|
||||
...state,
|
||||
...getStateForZoom(
|
||||
{
|
||||
viewportX: this.lastViewportPosition.x,
|
||||
@ -4278,7 +4280,8 @@ class App extends React.Component<AppProps, AppState> {
|
||||
},
|
||||
state,
|
||||
),
|
||||
}));
|
||||
}),
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user