From 62d66d93f7e7f666184aa215c876691c5433043f Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 31 Aug 2019 14:08:30 -0400 Subject: Remove rounding --- ext/fg/js/document.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/fg/js') 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}; } -- cgit v1.2.3