Skip to content

Commit

Permalink
Don’t try ticking the animation if there are no details (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramus authored Dec 24, 2023
1 parent 6d52d5b commit be3d4c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/proxy-animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,8 @@ function playInternal(details, autoRewind) {

function tickAnimation(timelineTime) {
const details = proxyAnimations.get(this);
if (!details) return;

if (timelineTime == null) {
// While the timeline is inactive, it's effect should not be applied.
// To polyfill this behavior, we cancel the underlying animation.
Expand Down

0 comments on commit be3d4c2

Please sign in to comment.