bug fix: handle all mouse move events not just ones on the target.
This commit is contained in:
@@ -96,7 +96,7 @@ const UserSelection = memo(({ isSelectionMode, onClick, onContextMenu, onWheel,
|
|||||||
};
|
};
|
||||||
|
|
||||||
const onMouseMove = (event: React.MouseEvent): void => {
|
const onMouseMove = (event: React.MouseEvent): void => {
|
||||||
if (!isSelectionMode || !containerBounds.current || !userSelectionRect || event.target !== container.current) {
|
if (!isSelectionMode || !containerBounds.current || !userSelectionRect) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user