Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
c3dd11de
Unverified
Commit
c3dd11de
authored
Mar 18, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Mar 18, 2024
Browse files
Merge pull request #1196 from fbirlik/patch-autoscrolldisable
fix: auto scroll fails to stop with small scroll amounts
parents
1f0dcb4f
adbcb068
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/routes/(app)/+page.svelte
src/routes/(app)/+page.svelte
+1
-1
src/routes/(app)/c/[id]/+page.svelte
src/routes/(app)/c/[id]/+page.svelte
+1
-1
No files found.
src/routes/(app)/+page.svelte
View file @
c3dd11de
...
...
@@ -832,7 +832,7 @@
on
:
scroll
={(
e
)
=>
{
autoScroll
=
messagesContainerElement
.
scrollHeight
-
messagesContainerElement
.
scrollTop
<=
messagesContainerElement
.
clientHeight
+
5
0
;
messagesContainerElement
.
clientHeight
+
5
;
}}
>
<
div
...
...
src/routes/(app)/c/[id]/+page.svelte
View file @
c3dd11de
...
...
@@ -861,7 +861,7 @@
on
:
scroll
={(
e
)
=>
{
autoScroll
=
messagesContainerElement
.
scrollHeight
-
messagesContainerElement
.
scrollTop
<=
messagesContainerElement
.
clientHeight
+
5
0
;
messagesContainerElement
.
clientHeight
+
5
;
}}
>
<
div
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment