From 9b9d3568495454ec777406101fbfaccef8e3f27c Mon Sep 17 00:00:00 2001 From: retoor Date: Fri, 23 May 2025 15:26:47 +0200 Subject: [PATCH] update. --- src/snek/static/message-list.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/snek/static/message-list.js b/src/snek/static/message-list.js index 341ec5c..7dc0270 100644 --- a/src/snek/static/message-list.js +++ b/src/snek/static/message-list.js @@ -21,11 +21,13 @@ class MessageList extends HTMLElement { scrollToBottom(force) { console.info("Scrolling down") // if (force) { - //this.scrollTop = this.scrollHeight; + this.scrollTop = this.scrollHeight; this.querySelector(".message-list-bottom").scrollIntoView(); setTimeout(() => { - this.querySelector(".message-list-bottom").scrollIntoView(); + + this.scrollTop = this.scrollHeight; + this.querySelector(".message-list-bottom").scrollIntoView(); },200) // } }