1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-28 00:12:27 +01:00

Fix absolute scrolling in newer Firefoxen.

This commit is contained in:
Kris Maglione
2013-05-21 14:34:56 -07:00
parent befacae422
commit a2ba3f56b7
2 changed files with 9 additions and 4 deletions

View File

@@ -390,9 +390,9 @@ var Addons = Module("addons", {
}
if (!file.exists())
AddonManager.getInstallForURL(url, install, "application/x-xpinstall");
AddonManager.getInstallForURL(url, install, "application/x-xpinstall");
else if (file.isReadable() && file.isFile())
AddonManager.getInstallForFile(file, install, "application/x-xpinstall");
AddonManager.getInstallForFile(file.file, install, "application/x-xpinstall");
else if (file.isDirectory())
dactyl.echoerr(_("addon.cantInstallDir", file.path.quote()));
else

View File

@@ -1471,8 +1471,13 @@ var Buffer = Module("Buffer", {
return elem[pos] > 0;
let max = pos + "Max";
if (max in elem && dir > 0)
return elem[pos] < elem[max];
if (max in elem) {
if (elem[pos] < elem[max])
return true;
if (dir > 0)
return false;
return elem[pos] > 0;
}
let style = DOM(elem).style;
let borderSize = Math.round(parseFloat(style[border1]) + parseFloat(style[border2]));