diff --git a/src/snek/static/message-list.js b/src/snek/static/message-list.js index 386a435..68fc098 100644 --- a/src/snek/static/message-list.js +++ b/src/snek/static/message-list.js @@ -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' });