Fixed scrolled to bottom check
This commit is contained in:
parent
11e19f48e8
commit
ac47d201d8
@ -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' });
|
||||
|
Loading…
Reference in New Issue
Block a user