From ac47d201d8c4025f4418143e167630019170293f Mon Sep 17 00:00:00 2001 From: BordedDev <> Date: Sat, 19 Jul 2025 00:13:06 +0200 Subject: [PATCH] Fixed scrolled to bottom check --- src/snek/static/message-list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snek/static/message-list.js b/src/snek/static/message-list.js index 386a435..68fc098 100644 --- a/src/snek/static/message-list.js +++ b/src/snek/static/message-list.js @@ -191,7 +191,7 @@ class MessageList extends HTMLElement { return this.isElementVisible(this.firstElementChild); } scrollToBottom(force = false, behavior= 'instant') { - if (force || this.isScrolledToBottom()) { + if (force || !this.isScrolledToBottom()) { this.firstElementChild.scrollIntoView({ behavior, block: 'start' }); setTimeout(() => { this.firstElementChild.scrollIntoView({ behavior, block: 'start' });