feat: clear selection when starting new selection.

This commit is contained in:
Jack Fishwick
2022-11-22 10:55:06 +00:00
parent b478243931
commit a2eff8f834
@@ -57,6 +57,8 @@ const UserSelection = memo(({ isSelectionMode, onClick, onContextMenu, onWheel,
return;
}
store.getState().resetSelectedElements();
const reactFlowNode = (event.target as Element).closest('.react-flow')!;
containerBounds.current = reactFlowNode.getBoundingClientRect();