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

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

Closed
Narretz wants to merge 1 commit into
angular:masterfrom
Narretz:fix-animate-timeout
Closed

fix($animate): cancel fallback timeout when animation ends normally#13787
Narretz wants to merge 1 commit into
angular:masterfrom
Narretz:fix-animate-timeout

Conversation

@Narretz

@Narretz Narretz commented Jan 18, 2016

Copy link
Copy Markdown
Contributor

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

Narretz commented Jan 18, 2016

Copy link
Copy Markdown
Contributor Author

@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

Narretz commented Jan 26, 2016

Copy link
Copy Markdown
Contributor Author

@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.

2 participants