Selection process is not interrupted by selectionKey being let go

This commit is contained in:
peterkogo
2024-01-22 11:26:02 +01:00
parent 07ee0c5bba
commit 601c7f1c15
2 changed files with 7 additions and 4 deletions
@@ -73,7 +73,8 @@
let selectedNodes: Node[] = [];
$: _panOnDrag = $panActivationKeyPressed || panOnDrag;
$: isSelecting = $selectionKeyPressed || (selectionOnDrag && _panOnDrag !== true);
$: isSelecting =
$selectionKeyPressed || $selectionRect || (selectionOnDrag && _panOnDrag !== true);
$: hasActiveSelection = $elementsSelectable && (isSelecting || $selectionRectMode === 'user');
function onClick(event: MouseEvent | TouchEvent) {