feat: display the pointer when in selection mode.
This commit is contained in:
@@ -136,7 +136,6 @@ const UserSelection = memo(
|
||||
y: mousePos.y < startY ? mousePos.y : startY,
|
||||
width: Math.abs(mousePos.x - startX),
|
||||
height: Math.abs(mousePos.y - startY),
|
||||
draw: true,
|
||||
};
|
||||
|
||||
const { nodeInternals, edges, transform, onNodesChange, onEdgesChange, nodeOrigin } = store.getState();
|
||||
@@ -216,7 +215,11 @@ const UserSelection = memo(
|
||||
|
||||
return (
|
||||
<div
|
||||
className={cc(['react-flow__pane', 'react-flow__container', { dragging: paneDragging }])}
|
||||
className={cc([
|
||||
'react-flow__pane',
|
||||
'react-flow__container',
|
||||
{ dragging: paneDragging, selection: isSelectionMode },
|
||||
])}
|
||||
{...eventHandlers}
|
||||
ref={container}
|
||||
style={containerStyle}
|
||||
|
||||
@@ -11,6 +11,10 @@
|
||||
z-index: 1;
|
||||
cursor: grab;
|
||||
|
||||
&.selection {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&.dragging {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user