diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-08-31 14:08:30 -0400 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-08-31 14:57:50 -0400 |
commit | 62d66d93f7e7f666184aa215c876691c5433043f (patch) | |
tree | 38e75f5a64d0443af14fd9104d69839b478cade2 /ext | |
parent | 9e9040178d1c498f4c7298a241137d2e7af59114 (diff) |
Remove rounding
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}; } |