зеркало из https://github.com/mozilla/gecko-dev.git
Bug 730681 - Stop resizing the CSS viewport every time we scroll by a pixel. r=Cwiiis
This commit is contained in:
Родитель
5f3ceab61d
Коммит
6a8731827e
|
@ -933,7 +933,6 @@ var BrowserApp = {
|
|||
browser.contentDocument.mozCancelFullScreen();
|
||||
} else if (aTopic == "Viewport:Change") {
|
||||
this.selectedTab.viewport = JSON.parse(aData);
|
||||
ViewportHandler.onResize();
|
||||
} else if (aTopic == "SearchEngines:Get") {
|
||||
this.getSearchEngines();
|
||||
} else if (aTopic == "Passwords:Init") {
|
||||
|
@ -3090,7 +3089,7 @@ var ViewportHandler = {
|
|||
break;
|
||||
|
||||
case "resize":
|
||||
this.onResize();
|
||||
BrowserApp.selectedTab.updateViewportSize();
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
@ -3166,10 +3165,6 @@ var ViewportHandler = {
|
|||
};
|
||||
},
|
||||
|
||||
onResize: function onResize() {
|
||||
BrowserApp.selectedTab.updateViewportSize();
|
||||
},
|
||||
|
||||
clamp: function(num, min, max) {
|
||||
return Math.max(min, Math.min(max, num));
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче