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:
2025-05-23 00:39:48 +00:00
parent 8242d0db10
commit eea2a03f36
+2 -2
View File
@@ -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) {