diff --git a/src/lib/components/ComfyGraphErrorList.svelte b/src/lib/components/ComfyGraphErrorList.svelte
index 3822ec7..8028093 100644
--- a/src/lib/components/ComfyGraphErrorList.svelte
+++ b/src/lib/components/ComfyGraphErrorList.svelte
@@ -135,7 +135,7 @@
{#if missingTag && nodeToJumpTo}
{:else}
{error.message}
diff --git a/src/lib/components/gradio/gallery/Gallery.svelte b/src/lib/components/gradio/gallery/Gallery.svelte
index f6a8108..06a92bc 100644
--- a/src/lib/components/gradio/gallery/Gallery.svelte
+++ b/src/lib/components/gradio/gallery/Gallery.svelte
@@ -15,7 +15,7 @@
export let label: string;
export let root: string = "";
export let root_url: null | string = null;
- export let scrollOnUpdate = false;
+ export let focusOnScroll = false;
export let value: Array | Array | null = null;
export let style: Styles = {
grid_cols: [2],
@@ -121,11 +121,11 @@
let container: HTMLDivElement;
async function scroll_to_img(index: number | null) {
- if (!scrollOnUpdate) return;
if (typeof index !== "number") return;
await tick();
- el[index].focus();
+ if (focusOnScroll)
+ el[index].focus();
const { left: container_left, width: container_width } =
container.getBoundingClientRect();