fix: chatbox always scrolling to bottom

The logic behind the chatbox is very difficult to understand, but from what I can tell, we shouldn't be scrolling if we're frozen and the scrolling wasn't forced. In such a case, return early instead.
This commit is contained in:
Roardom
2023-11-13 04:23:54 +00:00
parent 53f2c58480
commit 8f1ccd12e0

View File

@@ -1071,10 +1071,14 @@ export default {
if (container === null) return;
if (this.forced != false && force != true && this.frozen) return;
if (!this.forced && !force && this.frozen) return;
if (this.scroll || force) {
container.animate({ scrollTop: container.scrollHeight }, 0);
container.animate({
scrollTop: container.scrollHeight
}, {
duration: 0
});
}
container.scroll({