Skip to content

Add isIntersecting key to IntersectionObserverEntry - #270

Merged
Mohamed Hegazy (mhegazy) merged 4 commits into
microsoft:masterfrom
Jessidhia:intersection-observer-isIntersecting
Aug 15, 2017
Merged

Mohamed Hegazy (mhegazy) merged 4 commits into
microsoft:masterfrom
Jessidhia:intersection-observer-isIntersecting

Conversation

@Jessidhia

Copy link
Copy Markdown

@msftclas

@Kovensky,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by Microsoft. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot


interface IntersectionObserverEntryInit {
isIntersecting: boolean;
boundingClientRect?: DOMRectInit;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These keys are incorrectly marked as optional; they're required in the spec.

It turns out that the generator script doesn't support required so I fixed this in #271

@Jessidhia

Jessica Franco (Jessidhia) commented Jul 27, 2017 •

Copy link
Copy Markdown
Author

The official polyfill now supports adding isIntersecting to browsers that support IntersectionObserver but don't support isIntersecting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants