mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: disable overscroll on pinch-to-zoom
This commit is contained in:
parent
b5bf346229
commit
213134bbca
1 changed files with 14 additions and 11 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue