1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-30 17: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

@@ -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]));