Skip to content

Commit 6ab8785

Browse files
committed
dist
1 parent 9231906 commit 6ab8785

File tree

4 files changed

+3
-19
lines changed

4 files changed

+3
-19
lines changed

dist/components/Bot.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/web.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/web.umd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Bot.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,6 @@ export const Bot = (botProps: BotProps & { class?: string }) => {
12421242
.map(([key, value]) => `${key}: ${value}`)
12431243
.join('\n');
12441244
}
1245-
12461245
setLoading(true);
12471246
stickyToBottom = true;
12481247
setShowScrollButton(false);
@@ -1481,21 +1480,6 @@ export const Bot = (botProps: BotProps & { class?: string }) => {
14811480
}
14821481
});
14831482

1484-
// Auto scroll chat to bottom (but not during TTS actions or when user has scrolled up)
1485-
let autoScrollTimer: ReturnType<typeof setTimeout> | null = null;
1486-
createEffect(() => {
1487-
if (messages()) {
1488-
if (messages().length > 1 && !isTTSActionRef && stickyToBottom) {
1489-
if (autoScrollTimer) clearTimeout(autoScrollTimer);
1490-
autoScrollTimer = setTimeout(() => {
1491-
autoScrollTimer = null;
1492-
if (!stickyToBottom) return;
1493-
chatContainer?.scrollTo(0, chatContainer.scrollHeight);
1494-
}, 400);
1495-
}
1496-
}
1497-
});
1498-
14991483
createEffect(() => {
15001484
if (props.fontSize && botContainer) botContainer.style.fontSize = `${props.fontSize}px`;
15011485
});

0 commit comments

Comments
 (0)