Skip to content
Snippets Groups Projects
Commit 24d645b7 authored by Nolan Lawson's avatar Nolan Lawson Committed by Eugen Rochko
Browse files

Fix IntersectionObserver isIntersecting in Edge (#3365)

parent 7b23f79d
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,9 @@ class StatusList extends ImmutablePureComponent {
entries.forEach(entry => {
const statusId = entry.target.getAttribute('data-id');
state.isIntersecting[statusId] = entry.isIntersecting;
// Edge 15 doesn't support isIntersecting, but we can infer it from intersectionRatio
// https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12156111/
state.isIntersecting[statusId] = entry.intersectionRatio > 0;
});
// isIntersecting is a map of DOM data-id's to booleans (true for
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment