forked from retoor/snek
fix: restore direct scrollTop assignment in MessageList scrollToBottom
The scrollToBottom method previously used scrollIntoView on the message-list-bottom element, which caused inconsistent scrolling behavior when new messages were added. Reverting to the direct scrollTop assignment ensures the container scrolls reliably to the full content height.
This commit is contained in:
@@ -21,8 +21,8 @@ class MessageList extends HTMLElement {
|
||||
scrollToBottom(force) {
|
||||
|
||||
// if (force) {
|
||||
// this.scrollTop = this.scrollHeight;
|
||||
this.querySelector(".message-list-bottom").scrollIntoView();
|
||||
this.scrollTop = this.scrollHeight;
|
||||
//this.querySelector(".message-list-bottom").scrollIntoView();
|
||||
// }
|
||||
}
|
||||
updateMessageText(uid, message) {
|
||||
|
||||
Reference in New Issue
Block a user