UltrasonicNXT has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/195083

Change subject: Attempt to fix some scrolling issues
......................................................................

Attempt to fix some scrolling issues

Change-Id: I281f785869e2b8fa2d142a0d797cc85543f4d95f
---
M MediaWikiChat.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MediaWikiChat 
refs/changes/83/195083/1

diff --git a/MediaWikiChat.js b/MediaWikiChat.js
index a1ed073..e522e55 100644
--- a/MediaWikiChat.js
+++ b/MediaWikiChat.js
@@ -227,7 +227,7 @@
                var div = $( '#mwchat-content' );
 
                if (
-                       div.scrollTop() > div[0].scrollHeight - div.height() - 
25 ||  // only if user is scrolled to bottom atm
+                       div.scrollTop() >= div[0].scrollHeight - div.height() - 
25 ||  // only if user is scrolled to bottom atm
                        !MediaWikiChat.amI // or if this is the first poll 
request
                ) {
                        div.animate( { 'scrollTop': div[0].scrollHeight }, 1000 
);

-- 
To view, visit https://gerrit.wikimedia.org/r/195083
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I281f785869e2b8fa2d142a0d797cc85543f4d95f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MediaWikiChat
Gerrit-Branch: master
Gerrit-Owner: UltrasonicNXT <adamr_car...@btinternet.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to