Skip to content

Commit

Permalink
fix(VOverlay): subtract body scroll from contentBox
Browse files Browse the repository at this point in the history
fixes #16770
  • Loading branch information
KaelWD committed May 2, 2023
1 parent 01626bb commit b7e3da6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ function connectedLocationStrategy (data: LocationStrategyData, props: StrategyP
if (!scrollParents.length) {
scrollParents.push(document.documentElement)
if (!(data.contentEl.value.style.top && data.contentEl.value.style.left)) {
contentBox.x += parseFloat(document.documentElement.style.getPropertyValue('--v-body-scroll-x') || 0)
contentBox.y += parseFloat(document.documentElement.style.getPropertyValue('--v-body-scroll-y') || 0)
contentBox.x -= parseFloat(document.documentElement.style.getPropertyValue('--v-body-scroll-x') || 0)
contentBox.y -= parseFloat(document.documentElement.style.getPropertyValue('--v-body-scroll-y') || 0)
}
}

Expand Down

0 comments on commit b7e3da6

Please sign in to comment.