Skip to content

fix: animationFrameScheduler prematurely executing actions without delay#6892

Open
ajafff wants to merge 2 commits intoReactiveX:masterfrom
ajafff:fix-animationframescheduler-delay
Open

fix: animationFrameScheduler prematurely executing actions without delay#6892
ajafff wants to merge 2 commits intoReactiveX:masterfrom
ajafff:fix-animationframescheduler-delay

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