make sure onSelectionEnd is always fired

This commit is contained in:
peterkogo
2025-10-28 11:42:51 +01:00
parent 0220907b8b
commit 2fb4933506
2 changed files with 2 additions and 0 deletions
@@ -163,6 +163,7 @@ export function Pane({
resetSelectedElements(); resetSelectedElements();
onSelectionStart?.(event); onSelectionStart?.(event);
selectionInProgress.current = true;
} }
}; };
@@ -126,6 +126,7 @@
store.unselectNodesAndEdges(); store.unselectNodesAndEdges();
onselectionstart?.(event); onselectionstart?.(event);
selectionInProgress = true;
} }
} }