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 = {
|
var pos = {
|
||||||
"px": {"x": window.scrollX, "y": window.scrollY},
|
"px": {"x": window.scrollX, "y": window.scrollY},
|
||||||
"scroll": {
|
"scroll": {
|
||||||
"width": Math.max(body.scrollWidth, elem.scrollWidth),
|
"width": Math.max(
|
||||||
"height": Math.max(body.scrollHeight, elem.scrollHeight),
|
body.scrollWidth,
|
||||||
|
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