зеркало из https://github.com/mozilla/pjs.git
make pending pixels aware of screen size so that visible area is always filled
This commit is contained in:
Родитель
13adc3d3fb
Коммит
fb69f71918
|
@ -37,9 +37,9 @@
|
||||||
#filter substitution
|
#filter substitution
|
||||||
|
|
||||||
// for browser.xml binding
|
// for browser.xml binding
|
||||||
pref("toolkit.browser.cachePixelX", 800);
|
pref("toolkit.browser.cachePixelX", 400);
|
||||||
pref("toolkit.browser.cachePixelY", 2000);
|
pref("toolkit.browser.cachePixelY", 1000);
|
||||||
pref("toolkit.browser.recacheRatio", 50);
|
pref("toolkit.browser.recacheRatio", 60);
|
||||||
|
|
||||||
pref("toolkit.defaultChromeURI", "chrome://browser/content/browser.xul");
|
pref("toolkit.defaultChromeURI", "chrome://browser/content/browser.xul");
|
||||||
pref("general.useragent.compatMode.firefox", true);
|
pref("general.useragent.compatMode.firefox", true);
|
||||||
|
|
|
@ -834,8 +834,8 @@
|
||||||
this._pendingPixelsX += x;
|
this._pendingPixelsX += x;
|
||||||
this._pendingPixelsY += y;
|
this._pendingPixelsY += y;
|
||||||
|
|
||||||
if (Math.abs(this._pendingPixelsX) >= this._pendingThresholdX ||
|
if (Math.abs(this._pendingPixelsX) > Math.max(0, this._pendingThresholdX - bcr.width / 2) ||
|
||||||
Math.abs(this._pendingPixelsY) >= this._pendingThresholdY)
|
Math.abs(this._pendingPixelsY) > Math.max(0, this._pendingThresholdY - bcr.height / 2))
|
||||||
this._updateCacheViewport();
|
this._updateCacheViewport();
|
||||||
]]>
|
]]>
|
||||||
</body>
|
</body>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче