debounce context menu if app is resizing

This commit is contained in:
zsviczian 2025-03-09 11:17:05 +01:00 committed by GitHub
parent 4ec812bc18
commit 332bc4d732
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,