diff --git a/lib/assets/badge.js b/lib/assets/badge.js index 924b8ca4..e1818d90 100644 --- a/lib/assets/badge.js +++ b/lib/assets/badge.js @@ -180,8 +180,8 @@ var iframePos = iframe.getBoundingClientRect() var divHeight = divPos.height + arrowHeight - var st = document.body.scrollTop - var sl = document.body.scrollLeft + var st = window.scrollY || document.body.scrollTop + var sl = window.scrollX || document.body.scrollLeft var iw = window.innerWidth var ih = window.innerHeight var iframeTop = iframePos.top + st