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
@@ -36,6 +36,7 @@ const ConnectionLineFlow = () => {
onEdgesChange={onEdgesChange} onEdgesChange={onEdgesChange}
connectionLineComponent={ConnectionLine} connectionLineComponent={ConnectionLine}
onConnect={onConnect} onConnect={onConnect}
connectionDragThreshold={25}
> >
<Background variant={BackgroundVariant.Lines} /> <Background variant={BackgroundVariant.Lines} />
</ReactFlow> </ReactFlow>
@@ -24,7 +24,14 @@
</script> </script>
<div style="height:100vh;"> <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} /> <Background variant={BackgroundVariant.Lines} />
</SvelteFlow> </SvelteFlow>
</div> </div>