diff --git a/frontend/src/components/Messages.svelte b/frontend/src/components/Messages.svelte index 9e21775..645c745 100644 --- a/frontend/src/components/Messages.svelte +++ b/frontend/src/components/Messages.svelte @@ -26,7 +26,7 @@ const onScroll = (e) => { const { scrollTop, offsetHeight, scrollHeight } = e.target; - if ((scrollTop + offsetHeight) >= scrollHeight) { // user scrolled to bottom + if ((scrollTop + offsetHeight) >= (scrollHeight - 10)) { // user scrolled to bottom messages.setIsCollectingOldMessages(true); shouldAutoscroll = true; isScrolledToBottom = true;