From 5c2e708afdebbb8f7847e825fcf6e88342502986 Mon Sep 17 00:00:00 2001 From: peterspenler Date: Tue, 18 Oct 2022 16:27:20 -0400 Subject: [PATCH] Use isIntersecting instead of intersectionRatio --- CONTRIBUTORS.md | 1 + src/components/images/imageLoader.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 9bb58635be..0b40458f1d 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -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 diff --git a/src/components/images/imageLoader.js b/src/components/images/imageLoader.js index 6800f10a6f..d1095a01dc 100644 --- a/src/components/images/imageLoader.js +++ b/src/components/images/imageLoader.js @@ -83,7 +83,7 @@ worker.addEventListener( source = entry; } - if (entry.intersectionRatio > 0) { + if (entry.isIntersecting) { if (source) { fillImageElement(target, source); }