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

Checking for intersection on transitionend/animationend #212

Closed
wants to merge 1 commit into from

Conversation

bdadam
Copy link

@bdadam bdadam commented May 18, 2017

The polyfill checks for intersections when animationend or transitionend events are fired. Not only on resize or scroll. Doing these new checks should still be cheap, because these events are only fired once the movement of the element is finished.

@philipwalton
Copy link
Member

Can you add a test for this?

@lstrrs
Copy link

lstrrs commented Sep 3, 2017

Any update on this @bdadam ? I can pick it up if you want

@@ -254,6 +254,8 @@ IntersectionObserver.prototype._monitorIntersections = function() {
else {
addEvent(window, 'resize', this._checkForIntersections, true);
addEvent(document, 'scroll', this._checkForIntersections, true);
addEvent(document, 'transitionend', this._checkForIntersections, true);
Copy link

Choose a reason for hiding this comment

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

We need to remove the event on unobserve()

Copy link
Author

Choose a reason for hiding this comment

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

You are right.

@bdadam
Copy link
Author

bdadam commented Sep 4, 2017

Hey @luinova, thanks for your offer. I kind of forgot about this. I struggled with the tests what @philipwalton asked for. But now I have a new idea, I will try it out later today or tomorrow. I still would like this PR to be merged, because I will need this feature.

@lstrrs
Copy link

lstrrs commented Sep 5, 2017

@bdadam awesome!

@siusin
Copy link
Contributor

siusin commented Sep 12, 2017

Please merge the requested change to the master branch (index.bs) once the group/editors reach a consensus on this issue, the travis bot will generate an index.html with the latest version of Bikeshed and push it to gh-pages.

Our apologies for the inconvenience.

@yoavweiss
Copy link
Contributor

@bdadam Can you join the WICG to appease the IPR bots?

@miketaylr
Copy link
Member

Given the lack of movement here (and lack of tests), I propose we close the PR. If someone would like to pick it up again, we can certainly re-open. :)

@miketaylr miketaylr closed this Jun 10, 2022
Copy link

@Apetree100122 Apetree100122 left a comment

Choose a reason for hiding this comment

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

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants