Fixed unreliable image load
This commit is contained in:
parent
5a27ebf184
commit
d26a10a650
@ -57,7 +57,7 @@ export class AnimeNotifier {
|
|||||||
this.visibilityObserver = new IntersectionObserver(
|
this.visibilityObserver = new IntersectionObserver(
|
||||||
entries => {
|
entries => {
|
||||||
for(let entry of entries) {
|
for(let entry of entries) {
|
||||||
if(entry.intersectionRatio > 0) {
|
if(entry.isIntersecting) {
|
||||||
entry.target["became visible"]()
|
entry.target["became visible"]()
|
||||||
this.visibilityObserver.unobserve(entry.target)
|
this.visibilityObserver.unobserve(entry.target)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user