Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

fix($animate): cancel fallback timeout when animation ends normally #13787

Closed
wants to merge 1 commit into from

Conversation

Narretz
Copy link
Contributor

@Narretz Narretz commented Jan 18, 2016

No description provided.

Previously, css animations would not cancel the timeout when the
animation ends normally (calling end explicitly / transitionEnd event).
This meant that the timeout callback fn was always called after 150% of
the animation time was over. Since the animation was already closed at this
point, it would not do any work twice, but simply remove the timer data
from the element.
This commit changes the behavior to cancel the timeout and remove the data
when it is found during animation closing.
@Narretz
Copy link
Contributor Author

Narretz commented Jan 18, 2016

@matsko This is something I noticed by chance. I wonder if it was intentional that the timeout is not explicitly canceled, but that it cleans up after itself?

@Narretz
Copy link
Contributor Author

Narretz commented Jan 26, 2016

@matsko Did you have time to look at this (or ask Mishko)?

Narretz added a commit that referenced this pull request Jan 27, 2016
Previously, css animations would not cancel the timeout when the
animation ends normally (calling end explicitly / transitionEnd event).
This meant that the timeout callback fn was always called after 150% of
the animation time was over. Since the animation was already closed at this
point, it would not do any work twice, but simply remove the timer data
from the element.
This commit changes the behavior to cancel the timeout and remove the data
when it is found during animation closing.

Closes #13787
@Narretz Narretz closed this in e9c406b Jan 27, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants