diff --git a/qutebrowser/javascript/scroll.js b/qutebrowser/javascript/scroll.js index 699a59599..cd8a5baab 100644 --- a/qutebrowser/javascript/scroll.js +++ b/qutebrowser/javascript/scroll.js @@ -66,18 +66,8 @@ window._qutebrowser.scroll = (function() { var pos = { "px": {"x": window.scrollX, "y": window.scrollY}, "scroll": { - "width": Math.max( - body.scrollWidth, - body.offsetWidth, - elem.scrollWidth, - elem.offsetWidth - ), - "height": Math.max( - body.scrollHeight, - body.offsetHeight, - elem.scrollHeight, - elem.offsetHeight - ), + "width": Math.max(body.scrollWidth, elem.scrollWidth), + "height": Math.max(body.scrollHeight, elem.scrollHeight), }, "inner": { "width": window.innerWidth,