fix: auto scroll fails to stop with small scroll amounts

This commit is contained in:
Firat Birlik 2024-03-18 00:08:45 -05:00
parent 5ce421e7fa
commit adbcb06892
2 changed files with 2 additions and 2 deletions

View File

@ -813,7 +813,7 @@
on:scroll={(e) => {
autoScroll =
messagesContainerElement.scrollHeight - messagesContainerElement.scrollTop <=
messagesContainerElement.clientHeight + 50;
messagesContainerElement.clientHeight + 5;
}}
>
<div

View File

@ -845,7 +845,7 @@
on:scroll={(e) => {
autoScroll =
messagesContainerElement.scrollHeight - messagesContainerElement.scrollTop <=
messagesContainerElement.clientHeight + 50;
messagesContainerElement.clientHeight + 5;
}}
>
<div