chore(selection): handle selectionOnDrag in click capture
This commit is contained in:
@@ -116,7 +116,8 @@ export function Pane({
|
||||
const onWheel = onPaneScroll ? (event: React.WheelEvent) => onPaneScroll(event) : undefined;
|
||||
|
||||
const onClickCapture = (event: ReactMouseEvent) => {
|
||||
const isSelectionOnDragActive = (selectionOnDrag && container.current === event.target) || !selectionOnDrag;
|
||||
const isSelectionOnDragActive =
|
||||
(selectionOnDrag && container.current === event.target) || !selectionOnDrag || selectionKeyPressed;
|
||||
|
||||
if (!isSelectionOnDragActive) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user