fix: re-enable forced scroll-to-bottom and add immediate scrollHeight set in MessageList

This commit is contained in:
2025-05-23 13:26:47 +00:00
parent 34e13e4142
commit 95b675ac36
+4 -2
View File
@@ -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)
// }
}