Merge pull request #3933 from xyflow/draggable-cursor-fix

Draggable cursor fix
This commit is contained in:
Moritz Klack
2024-02-26 14:18:12 +01:00
committed by GitHub
6 changed files with 25 additions and 10 deletions
@@ -220,6 +220,7 @@ export function NodeWrapper<NodeType extends Node>({
selected: node.selected,
selectable: isSelectable,
parent: isParent,
draggable: isDraggable,
dragging,
},
])}
+1 -1
View File
@@ -220,7 +220,7 @@ export function Pane({
return (
<div
className={cc(['react-flow__pane', { dragging, selection: isSelecting }])}
className={cc(['react-flow__pane', { draggable: panOnDrag, dragging, selection: isSelecting }])}
onClick={hasActiveSelection ? undefined : wrapHandler(onClick, container)}
onContextMenu={wrapHandler(onContextMenu, container)}
onWheel={wrapHandler(onWheel, container)}