Bug 1518659 - Bug 1516813 follow-up: Port bug 1472557: remove use of _scrollbox in imAccounts.js. r=aceman
authorJorg K <jorgk@jorgk.com>
Wed, 09 Jan 2019 22:52:39 +0100
changeset 33292 2bda8c04fa47
parent 33291 e43ba90ba5ec
child 33293 a0540daeda24
push id2368
push userclokep@gmail.com
push dateMon, 28 Jan 2019 21:12:50 +0000
treeherdercomm-beta@56d23c07d815 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaceman
bugs1518659, 1516813, 1472557
Bug 1518659 - Bug 1516813 follow-up: Port bug 1472557: remove use of _scrollbox in imAccounts.js. r=aceman
mail/components/im/content/imAccounts.js
--- a/mail/components/im/content/imAccounts.js
+++ b/mail/components/im/content/imAccounts.js
@@ -657,17 +657,17 @@ var gAMDragAndDrop = {
     let listSize = accountList.getBoundingClientRect();
     let direction = 1;
     if (aClientY < listSize.top + this.MAGIC_SCROLL_HEIGHT)
       direction = -1;
     else if (aClientY < listSize.bottom - this.MAGIC_SCROLL_HEIGHT)
       // We are not on a scroll zone
       return;
 
-    accountList._scrollbox.scrollTop += direction * this.SCROLL_SPEED;
+    accountList.scrollTop += direction * this.SCROLL_SPEED;
   },
 
   onDrop(aEvent, aTransferData, aSession) {
     let accountElement = aEvent.explicitOriginalTarget;
     if (accountElement == gAccountManager.accountList)
       accountElement = gAccountManager.accountList.lastChild;
 
      if (!aSession.canDrop)