diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/fg/js/document.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fg/js/document.js b/ext/fg/js/document.js index 962592ec..514f8f2e 100644 --- a/ext/fg/js/document.js +++ b/ext/fg/js/document.js @@ -24,8 +24,8 @@ function docOffsetCalc(elementRect) { const clientTop = document.documentElement.clientTop || document.body.clientTop || 0; const clientLeft = document.documentElement.clientLeft || document.body.clientLeft || 0; - const top = Math.round(elementRect.top + scrollTop - clientTop); - const left = Math.round(elementRect.left + scrollLeft - clientLeft); + const top = elementRect.top + scrollTop - clientTop; + const left = elementRect.left + scrollLeft - clientLeft; return {top, left}; } |