Skip to content

Commit

Permalink
Update tick.ts
Browse files Browse the repository at this point in the history
This loop is required to allow queued animations to get their start values correctly, without it the start value will not be related to the end of the previous animation
  • Loading branch information
Rycochet authored Dec 11, 2017
1 parent 1b9594d commit ff6a8c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Velocity/tick.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ namespace VelocityStatic {
********************/

// Expand any tweens that might need it.
State.firstNew = undefined;
while ((activeCall = State.firstNew)) {
validateTweens(activeCall);
}
// Iterate through each active call.
for (activeCall = State.first; activeCall && activeCall !== State.firstNew; activeCall = activeCall._next) {
activeCall._flags |= AnimationFlags.EXPANDED;
Expand Down

0 comments on commit ff6a8c5

Please sign in to comment.