Remove rounding
This commit is contained in:
parent
9e9040178d
commit
62d66d93f7
@ -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};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user