Skip to content

Commit

Permalink
Update default parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
damianmgarcia committed Aug 18, 2024
1 parent 643242d commit b5e0a40
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scripts/modules/VisibleDOMRect.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ function getVisibleTop(element, elementRect, visiblePoint) {
(previousOffsetElementRect) => previousOffsetElementRect.bottom,
(elementRect) => elementRect.top,
(yOffset) => yOffset,
elementRect,
visiblePoint
(elementRect = element.getBoundingClientRect()),
(visiblePoint = getVisiblePoint(element))
);
}

Expand All @@ -200,8 +200,8 @@ function getVisibleBottom(element, elementRect, visiblePoint) {
(previousOffsetElementRect) => previousOffsetElementRect.top,
(elementRect) => elementRect.bottom,
(yOffset) => yOffset + 1,
elementRect,
visiblePoint
(elementRect = element.getBoundingClientRect()),
(visiblePoint = getVisiblePoint(element))
);
}

Expand All @@ -221,8 +221,8 @@ function getVisibleLeft(element, elementRect, visiblePoint) {
(previousOffsetElementRect) => previousOffsetElementRect.right,
(elementRect) => elementRect.left,
(xOffset) => xOffset,
elementRect,
visiblePoint
(elementRect = element.getBoundingClientRect()),
(visiblePoint = getVisiblePoint(element))
);
}

Expand All @@ -242,8 +242,8 @@ function getVisibleRight(element, elementRect, visiblePoint) {
(previousOffsetElementRect) => previousOffsetElementRect.left,
(elementRect) => elementRect.right,
(xOffset) => xOffset + 1,
elementRect,
visiblePoint
(elementRect = element.getBoundingClientRect()),
(visiblePoint = getVisiblePoint(element))
);
}

Expand Down

0 comments on commit b5e0a40

Please sign in to comment.