mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 689494 - Don't resize the UI when dragging the tablet sidebar rightward [r=mbrubeck]
This commit is contained in:
parent
3d16624646
commit
7b37824ea6
@ -206,7 +206,9 @@
|
||||
},
|
||||
|
||||
dragMove: function dragMove(dx, dy) {
|
||||
if (!this._grabSidebar) {
|
||||
let ltr = (Util.localeDir == Util.LOCALE_DIR_LTR);
|
||||
let hiddingPan = ltr ? (dx > 0) : (dx < 0);
|
||||
if (!this._grabSidebar && hiddingPan) {
|
||||
this._grabSidebar = dx && Util.isTablet() && !Util.isPortrait();
|
||||
if (this._grabSidebar)
|
||||
Browser.grabSidebar();
|
||||
|
Loading…
Reference in New Issue
Block a user