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
2 changed files with 2 additions and 2 deletions

View File

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

View File

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