chore(examples): use connectionDragThreshold
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user