From c200a7d2c6333b0774d3486828ba9215c96d5ed6 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 a5bc99e1aa..6de7a54552 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -52,6 +52,7 @@ - [MinecraftPlaye](https://github.com/MinecraftPlaye) - [Matthew Jones](https://github.com/matthew-jones-uk) - [taku0](https://github.com/taku0) + - [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); }