fix onSelectionEnd behavior

This commit is contained in:
peterkogo
2025-10-27 15:53:06 +01:00
parent 5ec0cac7fa
commit 1f43ccc3ab
4 changed files with 12 additions and 8 deletions

View File

@@ -147,6 +147,7 @@
if (distance <= paneClickDistance) {
return;
}
onselectionstart?.(event);
}
selectionInProgress = true;
@@ -220,7 +221,9 @@
store.selectionRectMode = 'nodes';
}
onselectionend?.(event);
if (selectionInProgress) {
onselectionend?.(event);
}
selectionStarted = false;
}