forked from open-webui/open-webui
refac
This commit is contained in:
parent
0d39a9fe0e
commit
2c2c2fd889
4 changed files with 8 additions and 9 deletions
|
@ -29,7 +29,6 @@
|
|||
$: if (autoScroll && bottomPadding) {
|
||||
(async () => {
|
||||
await tick();
|
||||
|
||||
scrollToBottom();
|
||||
})();
|
||||
}
|
||||
|
@ -167,7 +166,7 @@
|
|||
await tick();
|
||||
|
||||
const element = document.getElementById('messages-container');
|
||||
autoScroll = element.scrollHeight - element.scrollTop === element.clientHeight - 40;
|
||||
autoScroll = element.scrollHeight - element.scrollTop <= element.clientHeight + 50;
|
||||
|
||||
setTimeout(() => {
|
||||
scrollToBottom();
|
||||
|
@ -216,7 +215,7 @@
|
|||
await tick();
|
||||
|
||||
const element = document.getElementById('messages-container');
|
||||
autoScroll = element.scrollHeight - element.scrollTop === element.clientHeight - 40;
|
||||
autoScroll = element.scrollHeight - element.scrollTop <= element.clientHeight + 50;
|
||||
|
||||
setTimeout(() => {
|
||||
scrollToBottom();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue