mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 18:47:58 +01:00
Fix some scrollable element search corner cases. Closes issue #188.
This commit is contained in:
@@ -1121,7 +1121,7 @@ const Buffer = Module("buffer", {
|
|||||||
overflow = "overflowX", border1 = "borderLeftWidth", border2 = "borderRightWidth";
|
overflow = "overflowX", border1 = "borderLeftWidth", border2 = "borderRightWidth";
|
||||||
|
|
||||||
let style = util.computedStyle(elem);
|
let style = util.computedStyle(elem);
|
||||||
let borderSize = parseInt(style[border1]) + parseInt(style[border2]);
|
let borderSize = Math.round(parseFloat(style[border1]) + parseFloat(style[border2]));
|
||||||
let realSize = elem[size];
|
let realSize = elem[size];
|
||||||
// Stupid Gecko eccentricities. May fail for quirks mode documents.
|
// Stupid Gecko eccentricities. May fail for quirks mode documents.
|
||||||
if (elem[size] + borderSize == elem[max] || elem[size] == 0) // Stupid, fallible heuristic.
|
if (elem[size] + borderSize == elem[max] || elem[size] == 0) // Stupid, fallible heuristic.
|
||||||
|
|||||||
Reference in New Issue
Block a user