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) => { on:scroll={(e) => {
autoScroll = autoScroll =
messagesContainerElement.scrollHeight - messagesContainerElement.scrollTop <= messagesContainerElement.scrollHeight - messagesContainerElement.scrollTop <=
messagesContainerElement.clientHeight + 50; messagesContainerElement.clientHeight + 5;
}} }}
> >
<div <div

View file

@ -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