mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 05:24:02 +00:00
refac
This commit is contained in:
parent
ae35c68956
commit
1fb5ef99e2
@ -361,13 +361,14 @@
|
|||||||
history: history
|
history: history
|
||||||
});
|
});
|
||||||
|
|
||||||
const element = document.getElementById('messages-container');
|
if (autoScroll) {
|
||||||
autoScroll =
|
const element = document.getElementById('messages-container');
|
||||||
element.scrollHeight - element.scrollTop <= element.clientHeight + 50;
|
autoScroll =
|
||||||
|
element.scrollHeight - element.scrollTop <= element.clientHeight + 50;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
scrollToBottom();
|
scrollToBottom();
|
||||||
}, 100);
|
}, 100);
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{/key}
|
{/key}
|
||||||
|
Loading…
Reference in New Issue
Block a user