Skip to content

Commit

Permalink
fix: don't execute rescheduled animation frame actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed Apr 21, 2020
1 parent 85fe981 commit 0d55f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/scheduler/AnimationFrameScheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export class AnimationFrameScheduler extends AsyncScheduler {
const {actions} = this;
let error: any;
let index: number = -1;
let count: number = actions.length;
action = action || actions.shift()!;
let count: number = actions.length;

do {
if (error = action.execute(action.state, action.delay)) {
Expand Down

0 comments on commit 0d55f62

Please sign in to comment.