enh: scroll to message from overview

This commit is contained in:
Timothy J. Baek committed 2024-09-18 03:13:37 +02:00
1 parent 8d92093570
commit 67f704c98d
5 files changed
+38 -4

No files matched your search

+5 -1
View File
@@ -1,4 +1,8 @@
<script>
import { createEventDispatcher } from 'svelte';
const dispatch = createEventDispatcher();
import { theme } from '$lib/stores';
import { Background, Controls, SvelteFlow, BackgroundVariant } from '@xyflow/svelte';
@@ -22,7 +26,7 @@
: 'light'}
nodesConnectable={false}
nodesDraggable={false}
on:nodeclick={(event) => console.log('on node click', event.detail.node)}
on:nodeclick={(e) => dispatch('nodeclick', e.detail)}
oninit={() => {
console.log('Flow initialized');
}}