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`. 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,