Skip to content

Commit

Permalink
Merge pull request open-webui#1196 from fbirlik/patch-autoscrolldisable
Browse files Browse the repository at this point in the history
fix: auto scroll fails to stop with small scroll amounts
  • Loading branch information
tjbck authored Mar 18, 2024
2 parents 1f0dcb4 + adbcb06 commit c3dd11d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/routes/(app)/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@
on:scroll={(e) => {
autoScroll =
messagesContainerElement.scrollHeight - messagesContainerElement.scrollTop <=
messagesContainerElement.clientHeight + 50;
messagesContainerElement.clientHeight + 5;
}}
>
<div
Expand Down
2 changes: 1 addition & 1 deletion src/routes/(app)/c/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@
on:scroll={(e) => {
autoScroll =
messagesContainerElement.scrollHeight - messagesContainerElement.scrollTop <=
messagesContainerElement.clientHeight + 50;
messagesContainerElement.clientHeight + 5;
}}
>
<div
Expand Down

0 comments on commit c3dd11d

Please sign in to comment.