Skip to content

Commit

Permalink
Auto align start time before checking if animation is ready (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesodland authored Dec 30, 2023
1 parent 03dc800 commit 8362c3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/proxy-animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ function createReadyPromise(details) {
if (timelineTime === null) {
return
}

// Run auto align start time procedure, in case measurements are ready
autoAlignStartTime(details);
if (details.pendingTask === 'play' && (details.startTime !== null || details.holdTime !== null)) {
commitPendingPlay(details);
} else if (details.pendingTask === 'pause') {
Expand Down

0 comments on commit 8362c3e

Please sign in to comment.