From cb2db9f2d223944d7710a0fc17cd9954be77f2c0 Mon Sep 17 00:00:00 2001 From: moklick Date: Wed, 12 Nov 2025 15:50:20 +0100 Subject: [PATCH 1/2] chore(reactflow): paneClickDistance default 1 --- packages/react/src/container/ReactFlow/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/container/ReactFlow/index.tsx b/packages/react/src/container/ReactFlow/index.tsx index bd20242f..f01af831 100644 --- a/packages/react/src/container/ReactFlow/index.tsx +++ b/packages/react/src/container/ReactFlow/index.tsx @@ -104,7 +104,7 @@ function ReactFlow( onPaneMouseLeave, onPaneScroll, onPaneContextMenu, - paneClickDistance = 0, + paneClickDistance = 1, nodeClickDistance = 0, children, onReconnect, From c1304dba7a20bb8d74c7aceb23cd80b56e4c0482 Mon Sep 17 00:00:00 2001 From: moklick Date: Wed, 12 Nov 2025 15:51:03 +0100 Subject: [PATCH 2/2] chore(changesets): add --- .changeset/serious-peaches-fry.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/serious-peaches-fry.md diff --git a/.changeset/serious-peaches-fry.md b/.changeset/serious-peaches-fry.md new file mode 100644 index 00000000..2978ec99 --- /dev/null +++ b/.changeset/serious-peaches-fry.md @@ -0,0 +1,5 @@ +--- +'@xyflow/react': patch +--- + +Set `paneClickDistance` default value to `1`.