scroll.js --> fix scroll measures
scroll measures failed a travis test where document.documentElement.offsetHeight and document.documentElement.scrollHeight diffed by one pixel when the browser zoomed. --> Removed offsetHeight.
This commit is contained in:
parent
f2e471597d
commit
0c5d95c943
@ -66,18 +66,8 @@ window._qutebrowser.scroll = (function() {
|
|||||||
var pos = {
|
var pos = {
|
||||||
"px": {"x": window.scrollX, "y": window.scrollY},
|
"px": {"x": window.scrollX, "y": window.scrollY},
|
||||||
"scroll": {
|
"scroll": {
|
||||||
"width": Math.max(
|
"width": Math.max(body.scrollWidth, elem.scrollWidth),
|
||||||
body.scrollWidth,
|
"height": Math.max(body.scrollHeight, elem.scrollHeight),
|
||||||
body.offsetWidth,
|
|
||||||
elem.scrollWidth,
|
|
||||||
elem.offsetWidth
|
|
||||||
),
|
|
||||||
"height": Math.max(
|
|
||||||
body.scrollHeight,
|
|
||||||
body.offsetHeight,
|
|
||||||
elem.scrollHeight,
|
|
||||||
elem.offsetHeight
|
|
||||||
),
|
|
||||||
},
|
},
|
||||||
"inner": {
|
"inner": {
|
||||||
"width": window.innerWidth,
|
"width": window.innerWidth,
|
||||||
|
Loading…
Reference in New Issue
Block a user