mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-01 16:15:46 +01:00
Fix absolute scrolling in newer Firefoxen.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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]));
|
||||||
|
|||||||
Reference in New Issue
Block a user