Fixed unreliable image load

This commit is contained in:
Eduard Urbach 2017-11-19 13:51:23 +01:00
parent 5a27ebf184
commit d26a10a650

View File

@ -57,7 +57,7 @@ export class AnimeNotifier {
this.visibilityObserver = new IntersectionObserver(
entries => {
for(let entry of entries) {
if(entry.intersectionRatio > 0) {
if(entry.isIntersecting) {
entry.target["became visible"]()
this.visibilityObserver.unobserve(entry.target)
}