Bug 621066 - [regression] Panning about: pages always makes sidebar disappear [r=mbrubeck]
authorVivien Nicolas <21@vingtetun.org>
Fri, 11 Feb 2011 19:54:22 +0100
changeset 67376 856b0d1e26ced0d73a1a807fa0d59aaec650e3a9
parent 67375 3f09b445ffd1e9f5bceb6169cc07ad4fcc756344
child 67377 1c6a37151d8a0fcdd6ec3fb9a558bec7cfc54cd8
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmbrubeck
bugs621066
Bug 621066 - [regression] Panning about: pages always makes sidebar disappear [r=mbrubeck]
mobile/chrome/content/browser.js
--- a/mobile/chrome/content/browser.js
+++ b/mobile/chrome/content/browser.js
@@ -1084,18 +1084,23 @@ var Browser = {
           this.zoomToPoint(json.x, json.y, rect);
         } else {
           this.zoomFromPoint(json.x, json.y);
         }
         break;
 
       case "scroll":
         if (browser == this.selectedBrowser) {
-          this.hideTitlebar();
-          this.hideSidebars();
+          let view = browser.getRootView();
+          let position = view.getPosition();
+          if (position.x != 0)
+            this.hideSidebars();
+
+          if (position.y != 0)
+            this.hideTitlebar();
         }
         break;
       case "Browser:CertException":
         this._handleCertException(aMessage);
         break;
     }
   }
 };