From adbcb0689234066dddfbec59a76689802ea5cd30 Mon Sep 17 00:00:00 2001 From: Firat Birlik Date: Mon, 18 Mar 2024 00:08:45 -0500 Subject: [PATCH] fix: auto scroll fails to stop with small scroll amounts --- src/routes/(app)/+page.svelte | 2 +- src/routes/(app)/c/[id]/+page.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/(app)/+page.svelte b/src/routes/(app)/+page.svelte index 926681b14c..03c5d9266d 100644 --- a/src/routes/(app)/+page.svelte +++ b/src/routes/(app)/+page.svelte @@ -813,7 +813,7 @@ on:scroll={(e) => { autoScroll = messagesContainerElement.scrollHeight - messagesContainerElement.scrollTop <= - messagesContainerElement.clientHeight + 50; + messagesContainerElement.clientHeight + 5; }} >
{ autoScroll = messagesContainerElement.scrollHeight - messagesContainerElement.scrollTop <= - messagesContainerElement.clientHeight + 50; + messagesContainerElement.clientHeight + 5; }} >