Bug 1387718 - Use instant scroll behavior when dragging something over the tab strip scroll buttons. r=mconley
authorDão Gottwald <dao@mozilla.com>
Wed, 13 Sep 2017 12:52:44 +0200
changeset 430080 dc2bacb89a6bc38cf41831965f55f6838e12cb28
parent 430079 b061a65e51d79e985415b6c3c8e1fffa28159616
child 430081 fc4449801edc967b1321765b0d07ab47caf758dc
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs1387718
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1387718 - Use instant scroll behavior when dragging something over the tab strip scroll buttons. r=mconley MozReview-Commit-ID: DiIcdlWd1ic
browser/base/content/tabbrowser.xml
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -7319,17 +7319,17 @@
             case "scrollbutton-up":
               pixelsToScroll = tabStrip.scrollIncrement * -1;
               break;
             case "scrollbutton-down":
               pixelsToScroll = tabStrip.scrollIncrement;
               break;
           }
           if (pixelsToScroll)
-            tabStrip.scrollByPixels((ltr ? 1 : -1) * pixelsToScroll);
+            tabStrip.scrollByPixels((ltr ? 1 : -1) * pixelsToScroll, true);
         }
 
         if (effects == "move" &&
             this == event.dataTransfer.mozGetDataAt(TAB_DROP_TYPE, 0).parentNode) {
           ind.collapsed = true;
           this._animateTabMove(event);
           return;
         }