summaryrefslogtreecommitdiff
path: root/ext/fg/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-08-31 14:08:30 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-08-31 14:57:50 -0400
commit62d66d93f7e7f666184aa215c876691c5433043f (patch)
tree38e75f5a64d0443af14fd9104d69839b478cade2 /ext/fg/js
parent9e9040178d1c498f4c7298a241137d2e7af59114 (diff)
Remove rounding
Diffstat (limited to 'ext/fg/js')
-rw-r--r--ext/fg/js/document.js4
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};
}