Fixed scrolling behavior, reply, cross channel messages and gg navigation #66

Merged
retoor merged 6 commits from BordedDev/snek:bugfix/multiple-issues-with-new-chat into main 2025-07-20 19:55:47 +02:00
Showing only changes of commit ac47d201d8 - Show all commits

View File

@ -191,7 +191,7 @@ class MessageList extends HTMLElement {
return this.isElementVisible(this.firstElementChild); return this.isElementVisible(this.firstElementChild);
} }
scrollToBottom(force = false, behavior= 'instant') { scrollToBottom(force = false, behavior= 'instant') {
if (force || this.isScrolledToBottom()) { if (force || !this.isScrolledToBottom()) {
this.firstElementChild.scrollIntoView({ behavior, block: 'start' }); this.firstElementChild.scrollIntoView({ behavior, block: 'start' });
setTimeout(() => { setTimeout(() => {
this.firstElementChild.scrollIntoView({ behavior, block: 'start' }); this.firstElementChild.scrollIntoView({ behavior, block: 'start' });