Merge pull request #1461 from MrTimscampi/root-margins

Fix issue with IntersectionObserver root margin
This commit is contained in:
Vasily 2020-06-22 10:28:21 +03:00 committed by GitHub
commit c7fcddb3a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,9 +11,9 @@
(entries) => {
entries.forEach(entry => {
callback(entry);
},
{rootMargin: '50%'});
});
},
{rootMargin: '25%'});
this.observer = observer;
}