diff --git a/mobile/app/mobile.js b/mobile/app/mobile.js index 6f301ed9a75..2c47c784fdc 100644 --- a/mobile/app/mobile.js +++ b/mobile/app/mobile.js @@ -37,9 +37,9 @@ #filter substitution // for browser.xml binding -pref("toolkit.browser.cachePixelX", 800); -pref("toolkit.browser.cachePixelY", 2000); -pref("toolkit.browser.recacheRatio", 50); +pref("toolkit.browser.cachePixelX", 400); +pref("toolkit.browser.cachePixelY", 1000); +pref("toolkit.browser.recacheRatio", 60); pref("toolkit.defaultChromeURI", "chrome://browser/content/browser.xul"); pref("general.useragent.compatMode.firefox", true); diff --git a/mobile/chrome/content/bindings/browser.xml b/mobile/chrome/content/bindings/browser.xml index 2e649faaa6d..f8fc3f6003c 100644 --- a/mobile/chrome/content/bindings/browser.xml +++ b/mobile/chrome/content/bindings/browser.xml @@ -834,8 +834,8 @@ this._pendingPixelsX += x; this._pendingPixelsY += y; - if (Math.abs(this._pendingPixelsX) >= this._pendingThresholdX || - Math.abs(this._pendingPixelsY) >= this._pendingThresholdY) + if (Math.abs(this._pendingPixelsX) > Math.max(0, this._pendingThresholdX - bcr.width / 2) || + Math.abs(this._pendingPixelsY) > Math.max(0, this._pendingThresholdY - bcr.height / 2)) this._updateCacheViewport(); ]]>