Revert "scroll.js --> fix scroll measures"
This reverts commit 0c5d95c943
.
Using those values is probably okay as long as we adjust for the
off-by-one errors which will follow in the next commit.
This commit is contained in:
parent
fc1943e5e6
commit
fc0b62f122
@ -66,8 +66,18 @@ window._qutebrowser.scroll = (function() {
|
||||
var pos = {
|
||||
"px": {"x": window.scrollX, "y": window.scrollY},
|
||||
"scroll": {
|
||||
"width": Math.max(body.scrollWidth, elem.scrollWidth),
|
||||
"height": Math.max(body.scrollHeight, elem.scrollHeight),
|
||||
"width": Math.max(
|
||||
body.scrollWidth,
|
||||
body.offsetWidth,
|
||||
elem.scrollWidth,
|
||||
elem.offsetWidth
|
||||
),
|
||||
"height": Math.max(
|
||||
body.scrollHeight,
|
||||
body.offsetHeight,
|
||||
elem.scrollHeight,
|
||||
elem.offsetHeight
|
||||
),
|
||||
},
|
||||
"inner": {
|
||||
"width": window.innerWidth,
|
||||
|
Loading…
Reference in New Issue
Block a user