update.
This commit is contained in:
parent
30b7871583
commit
9b9d356849
@ -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)
|
||||
// }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user