enh: scroll to message from overview

This commit is contained in:
Timothy J. Baek
2024-09-18 03:13:37 +02:00
parent 8d92093570
commit 67f704c98d
5 changed files with 38 additions and 4 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
<script lang="ts">
import { getContext, createEventDispatcher } from 'svelte';
import { useSvelteFlow, useNodesInitialized, useStore } from '@xyflow/svelte';
import { SvelteFlow, Controls, Background, BackgroundVariant } from '@xyflow/svelte';
const dispatch = createEventDispatcher();
const i18n = getContext('i18n');
@@ -148,6 +147,6 @@
</div>
{#if $nodes.length > 0}
<Flow {nodes} {nodeTypes} {edges} />
<Flow {nodes} {nodeTypes} {edges} on:nodeclick={(e) => dispatch('nodeclick', e.detail)} />
{/if}
</div>