mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-02-22 04:39:16 -06:00
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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user