mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
debounce context menu if app is resizing
This commit is contained in:
parent
4ec812bc18
commit
332bc4d732
1 changed files with 5 additions and 1 deletions
|
@ -6232,7 +6232,7 @@ class App extends React.Component<AppProps, AppState> {
|
||||||
|
|
||||||
// set touch moving for mobile context menu
|
// set touch moving for mobile context menu
|
||||||
private handleTouchMove = (event: React.TouchEvent<HTMLCanvasElement>) => {
|
private handleTouchMove = (event: React.TouchEvent<HTMLCanvasElement>) => {
|
||||||
invalidateContextMenu = true;
|
this.resetContextMenuTimer();
|
||||||
};
|
};
|
||||||
|
|
||||||
handleHoverSelectedLinearElement(
|
handleHoverSelectedLinearElement(
|
||||||
|
@ -10426,6 +10426,10 @@ class App extends React.Component<AppProps, AppState> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.state.isResizing) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const { x, y } = viewportCoordsToSceneCoords(event, this.state);
|
const { x, y } = viewportCoordsToSceneCoords(event, this.state);
|
||||||
const element = this.getElementAtPosition(x, y, {
|
const element = this.getElementAtPosition(x, y, {
|
||||||
preferSelected: true,
|
preferSelected: true,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue