Explorar o código

Bugfix. Properly determine when we've scrolled to top

JC Brand %!s(int64=5) %!d(string=hai) anos
pai
achega
5222881690
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/converse-chatview.js

+ 1 - 1
src/converse-chatview.js

@@ -1095,7 +1095,7 @@ converse.plugins.add('converse-chatview', {
                 if (is_at_bottom) {
                     scrolled = false;
                     this.onScrolledDown();
-                } else if (this.content.scrollTop === 0) {
+                } else if (this.msgs_container.scrollTop === 0) {
                     /**
                      * Triggered once the chat's message area has been scrolled to the top
                      * @event _converse#chatBoxScrolledUp