This commit is contained in:
retoor 2025-05-23 15:26:47 +02:00
parent 30b7871583
commit 9b9d356849

View File

@ -21,11 +21,13 @@ class MessageList extends HTMLElement {
scrollToBottom(force) { scrollToBottom(force) {
console.info("Scrolling down") console.info("Scrolling down")
// if (force) { // if (force) {
//this.scrollTop = this.scrollHeight; this.scrollTop = this.scrollHeight;
this.querySelector(".message-list-bottom").scrollIntoView(); this.querySelector(".message-list-bottom").scrollIntoView();
setTimeout(() => { setTimeout(() => {
this.querySelector(".message-list-bottom").scrollIntoView();
this.scrollTop = this.scrollHeight;
this.querySelector(".message-list-bottom").scrollIntoView();
},200) },200)
// } // }
} }