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

fix: animationFrameScheduler prematurely executing actions without delay #6892

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ajafff
Copy link
Contributor

@ajafff ajafff commented Mar 14, 2022

Description:

If AnimationFrameScheduler#flush is called with an action as parameter, it's an action with delay > 0. Only execute this action and don't touch scheduler._scheduled and scheduler.actions because the action it not affected by any of them.

This branch is based on #6889 to avoid merge conflicts in the spec file.

Related issue (if exists):

Fixes: #6891

@ajafff ajafff changed the title Fix animationframescheduler delay fix: animationFrameScheduler prematurely executing actions without delay Mar 14, 2022
@ajafff ajafff force-pushed the fix-animationframescheduler-delay branch from 01d2f72 to af58095 Compare March 30, 2022 15:06
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.

animationFrameScheduler with delay causes incorrect behavior (and exception)
1 participant