Merge pull request #1196 from fbirlik/patch-autoscrolldisable

fix: auto scroll fails to stop with small scroll amounts
This commit is contained in:
Timothy Jaeryang Baek 2024-03-18 11:57:34 -05:00 committed by GitHub
commit c3dd11de16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -832,7 +832,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

@ -861,7 +861,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