forked from open-webui/open-webui
fix: auto scroll fails to stop with small scroll amounts
This commit is contained in:
parent
5ce421e7fa
commit
adbcb06892
2 changed files with 2 additions and 2 deletions
|
@ -813,7 +813,7 @@
|
||||||
on:scroll={(e) => {
|
on:scroll={(e) => {
|
||||||
autoScroll =
|
autoScroll =
|
||||||
messagesContainerElement.scrollHeight - messagesContainerElement.scrollTop <=
|
messagesContainerElement.scrollHeight - messagesContainerElement.scrollTop <=
|
||||||
messagesContainerElement.clientHeight + 50;
|
messagesContainerElement.clientHeight + 5;
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
|
|
@ -845,7 +845,7 @@
|
||||||
on:scroll={(e) => {
|
on:scroll={(e) => {
|
||||||
autoScroll =
|
autoScroll =
|
||||||
messagesContainerElement.scrollHeight - messagesContainerElement.scrollTop <=
|
messagesContainerElement.scrollHeight - messagesContainerElement.scrollTop <=
|
||||||
messagesContainerElement.clientHeight + 50;
|
messagesContainerElement.clientHeight + 5;
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
|
Loading…
Reference in a new issue