Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle zero-area and display: none cases #102

Merged
merged 2 commits into from
Jan 7, 2019
Merged

Conversation

asakusuma
Copy link
Contributor

@asakusuma asakusuma commented Jan 5, 2019

Attempts to satisfy the spec: https://www.w3.org/TR/intersection-observer/#update-intersection-observations-algo

isIntersecting, non-zero area, and display:nonen are all related, so fixing in one swoop.

Fixes:
#93
#73

Related issues:
w3c/IntersectionObserver#69
w3c/IntersectionObserver#222

@asakusuma asakusuma force-pushed the isIntersecting branch 2 times, most recently from 2bd2352 to 80e1864 Compare January 6, 2019 05:49
@asakusuma asakusuma changed the title WIP: Handle zero-area and display: none cases Handle zero-area and display: none cases Jan 6, 2019
Attempts to satsify the spec: https://www.w3.org/TR/intersection-observer/#update-intersection-observations-algo

isIntersecting, non-zero area, and display:nonen are all related, so fixing in one swoop.

Fixes:
#93
#73

Related issues:
w3c/IntersectionObserver#69
w3c/IntersectionObserver#222
Copy link
Member

@lynchbomb lynchbomb left a comment

Choose a reason for hiding this comment

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

Lets keep src/index.ts tidy and bump the util functions out. Additionally will need to port this PR into the other primary release branches (v2-release and v4) and test against Ember-Spaniel.

Move functions in index.ts into utils.ts
@lynchbomb lynchbomb merged commit 0296c66 into master Jan 7, 2019
@lynchbomb lynchbomb deleted the isIntersecting branch July 18, 2019 23:38
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.

2 participants