diff --git a/mobile/chrome/content/browser.js b/mobile/chrome/content/browser.js index e55e81b3387e..d11ae60c0540 100644 --- a/mobile/chrome/content/browser.js +++ b/mobile/chrome/content/browser.js @@ -1356,11 +1356,14 @@ Browser.MainDragger.prototype = { let isTablet = Util.isTablet(); this._panToolbars = !isTablet; + this._grabSidebar = false; // In landscape portrait mode, swiping from the left margin drags the tab sidebar. - this._grabSidebar = isTablet && !Util.isPortrait() && - ((Util.localeDir == Util.LOCALE_DIR_LTR) ? - (clientX - bcr.left < 30) : - (bcr.right - clientX < 30)); + if (isTablet && !Util.isPortrait()) { + let grabSidebarMargin = TabsPopup.visible ? 30 : 5; + this._grabSidebar = ((Util.localeDir == Util.LOCALE_DIR_LTR) + ? (clientX - bcr.left < 30) + : (bcr.right - clientX < 30)); + } if (this._grabSidebar) Browser.grabSidebar();