Closed
Description
👋 Hello.
I discovered that according to caniuse Edge 15 supports the Intersection Observer API. While playing around with it I discovered though, that Edge does not implement the isIntersecting
property.
The Firefox implementation (behind a flag currently) is also missing this property on IntersectionObserverEntry
.
Would it make sense to extend the feature detection which is currently:
if ('IntersectionObserver' in window &&
'IntersectionObserverEntry' in window &&
'intersectionRatio' in window.IntersectionObserverEntry.prototype) {
return;
}
with a check for this property? I think it's really handy and this property missing could lead to "unexpected behavior" on developer's side.
if ('IntersectionObserver' in window &&
'IntersectionObserverEntry' in window &&
'intersectionRatio' in window.IntersectionObserverEntry.prototype &&
'isIntersecting' in window.IntersectionObserverEntry.prototype) {
return;
}
Thanks in advance. :)
Metadata
Metadata
Assignees
Labels
No labels