We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b226f0 commit f7553baCopy full SHA for f7553ba
packages/query/src/query.js
@@ -2354,8 +2354,8 @@ export class Query {
2354
2355
// 1. Global (Viewport) Coordinates
2356
const globalCoords = {
2357
- top: round(elRect.top) - parentRect.box.border.left + window.scrollY,
2358
- left: round(elRect.left) - parentRect.box.border.top + window.scrollX,
+ top: round(elRect.top) - parentRect.box.border.top + window.scrollY,
+ left: round(elRect.left) - parentRect.box.border.left + window.scrollX,
2359
};
2360
if (!isSetter && type === 'global') {
2361
return globalCoords;
0 commit comments