diff --git a/common/content/hints.js b/common/content/hints.js index a452394c..8c0624e4 100644 --- a/common/content/hints.js +++ b/common/content/hints.js @@ -276,8 +276,7 @@ function Hints() //{{{ function getBodyOffsets(doc) { let bodyRect = (doc.body || doc.documentElement).getBoundingClientRect(); - return [doc.defaultView.scrollX - bodyRect.left, - doc.defaultView.scrollY - bodyRect.top]; + return [-bodyRect.left, -bodyRect.top]; } /**