diff --git a/.changeset/heavy-crews-invite.md b/.changeset/heavy-crews-invite.md new file mode 100644 index 00000000..6169d48e --- /dev/null +++ b/.changeset/heavy-crews-invite.md @@ -0,0 +1,7 @@ +--- +'@xyflow/react': patch +'@xyflow/svelte': patch +'@xyflow/system': patch +--- + +Only display grab cursor when panOnDrag is on left mouse button diff --git a/packages/react/src/container/Pane/index.tsx b/packages/react/src/container/Pane/index.tsx index 9e35829c..48c23eba 100644 --- a/packages/react/src/container/Pane/index.tsx +++ b/packages/react/src/container/Pane/index.tsx @@ -253,9 +253,11 @@ export function Pane({ selectionStarted.current = false; }; + const draggable = panOnDrag === true || (Array.isArray(panOnDrag) && panOnDrag.includes(0)); + return (