From 2a9f8ed7ae825216c6bad5b89d33a9f50e254b74 Mon Sep 17 00:00:00 2001 From: Bramus Date: Sat, 23 Dec 2023 23:33:26 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20try=20ticking=20the=20animation?= =?UTF-8?q?=20if=20there=20are=20no=20details?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/proxy-animation.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/proxy-animation.js b/src/proxy-animation.js index 49d2c487..eee8dc9e 100644 --- a/src/proxy-animation.js +++ b/src/proxy-animation.js @@ -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.