mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -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
|
||||
private handleTouchMove = (event: React.TouchEvent<HTMLCanvasElement>) => {
|
||||
invalidateContextMenu = true;
|
||||
this.resetContextMenuTimer();
|
||||
};
|
||||
|
||||
handleHoverSelectedLinearElement(
|
||||
|
@ -10426,6 +10426,10 @@ class App extends React.Component<AppProps, AppState> {
|
|||
return;
|
||||
}
|
||||
|
||||
if (this.state.isResizing) {
|
||||
return;
|
||||
}
|
||||
|
||||
const { x, y } = viewportCoordsToSceneCoords(event, this.state);
|
||||
const element = this.getElementAtPosition(x, y, {
|
||||
preferSelected: true,
|
||||
|
|
Loading…
Add table
Reference in a new issue