1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-01 13:15:46 +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()) if (!file.exists())
AddonManager.getInstallForURL(url, install, "application/x-xpinstall"); AddonManager.getInstallForURL(url, install, "application/x-xpinstall");
else if (file.isReadable() && file.isFile()) 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()) else if (file.isDirectory())
dactyl.echoerr(_("addon.cantInstallDir", file.path.quote())); dactyl.echoerr(_("addon.cantInstallDir", file.path.quote()));
else else

View File

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