Skip to content

Commit

Permalink
fix: use scrollHeight and scrollWidth
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandolf committed Oct 9, 2022
1 parent a032583 commit ecb580f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/puppeteer-core/src/injected/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function isBoundingBoxVisible(element: Element): boolean {
rect.height > 0 &&
rect.right > 0 &&
rect.bottom > 0 &&
rect.left < self.innerWidth &&
rect.top < self.innerHeight
rect.left < document.body.scrollWidth &&
rect.top < document.body.scrollHeight
);
}

0 comments on commit ecb580f

Please sign in to comment.