Skip to content

Commit f74c497

Browse files
webui: remove scroll listener causing unnecessary layout updates
1 parent fdc7b2b commit f74c497

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tools/server/webui/src/lib/components/app/chat/ChatForm/ChatFormModelSelector.svelte

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,6 @@
7272
}
7373
}
7474
75-
function handleScroll() {
76-
if (isOpen) {
77-
updateMenuPosition();
78-
}
79-
}
80-
8175
async function handleSelect(value: string | undefined) {
8276
if (!value) return;
8377
@@ -259,7 +253,7 @@
259253
}
260254
</script>
261255

262-
<svelte:window onresize={handleResize} onscroll={handleScroll} />
256+
<svelte:window onresize={handleResize} />
263257

264258
<svelte:document onpointerdown={handlePointerDown} onkeydown={handleKeydown} />
265259

0 commit comments

Comments
 (0)