chore(examples): use connectionDragThreshold
This commit is contained in:
@@ -36,6 +36,7 @@ const ConnectionLineFlow = () => {
|
||||
onEdgesChange={onEdgesChange}
|
||||
connectionLineComponent={ConnectionLine}
|
||||
onConnect={onConnect}
|
||||
connectionDragThreshold={25}
|
||||
>
|
||||
<Background variant={BackgroundVariant.Lines} />
|
||||
</ReactFlow>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user