chore(examples): use connectionDragThreshold

This commit is contained in:
moklick
2025-06-16 21:23:25 +02:00
parent a07dc81afa
commit 53d13aca01
2 changed files with 9 additions and 1 deletions

View File

@@ -36,6 +36,7 @@ const ConnectionLineFlow = () => {
onEdgesChange={onEdgesChange}
connectionLineComponent={ConnectionLine}
onConnect={onConnect}
connectionDragThreshold={25}
>
<Background variant={BackgroundVariant.Lines} />
</ReactFlow>

View File

@@ -24,7 +24,14 @@
</script>
<div style="height:100vh;">
<SvelteFlow bind:nodes bind:edges {nodeTypes} fitView connectionLineComponent={ConnectionLine}>
<SvelteFlow
bind:nodes
bind:edges
{nodeTypes}
fitView
connectionLineComponent={ConnectionLine}
connectionDragThreshold={100}
>
<Background variant={BackgroundVariant.Lines} />
</SvelteFlow>
</div>