Skip to content

Commit

Permalink
Use isIntersecting instead of intersectionRatio
Browse files Browse the repository at this point in the history
  • Loading branch information
peterspenler authored and dannymichel committed Oct 22, 2022
1 parent ca217e9 commit 5c2e708
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
- [Viperinius](https://github.com/Viperinius)
- [is343](https://github.com/is343)
- [Meet Pandya](https://github.com/meet-k-pandya)
- [Peter Spenler](https://github.com/peterspenler)

# Emby Contributors

Expand Down
2 changes: 1 addition & 1 deletion src/components/images/imageLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ worker.addEventListener(
source = entry;
}

if (entry.intersectionRatio > 0) {
if (entry.isIntersecting) {
if (source) {
fillImageElement(target, source);
}
Expand Down

0 comments on commit 5c2e708

Please sign in to comment.