Skip to content

Commit f7553ba

Browse files
committed
Bug: Fix typo in border calc from bad copy and paste
1 parent 0b226f0 commit f7553ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/query/src/query.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2354,8 +2354,8 @@ export class Query {
23542354

23552355
// 1. Global (Viewport) Coordinates
23562356
const globalCoords = {
2357-
top: round(elRect.top) - parentRect.box.border.left + window.scrollY,
2358-
left: round(elRect.left) - parentRect.box.border.top + window.scrollX,
2357+
top: round(elRect.top) - parentRect.box.border.top + window.scrollY,
2358+
left: round(elRect.left) - parentRect.box.border.left + window.scrollX,
23592359
};
23602360
if (!isSetter && type === 'global') {
23612361
return globalCoords;

0 commit comments

Comments
 (0)