bug fix: handle all mouse move events not just ones on the target.

This commit is contained in:
Jack Fishwick
2022-11-22 10:55:07 +00:00
parent 27a746bf57
commit 6fe85b2cbe
@@ -96,7 +96,7 @@ const UserSelection = memo(({ isSelectionMode, onClick, onContextMenu, onWheel,
};
const onMouseMove = (event: React.MouseEvent): void => {
if (!isSelectionMode || !containerBounds.current || !userSelectionRect || event.target !== container.current) {
if (!isSelectionMode || !containerBounds.current || !userSelectionRect) {
return;
}