From be3d4c2f702b5a8d2908d245dfc8cdf333fcebe8 Mon Sep 17 00:00:00 2001 From: Bramus Date: Sun, 24 Dec 2023 14:08:32 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20try=20ticking=20the=20animation?= =?UTF-8?q?=20if=20there=20are=20no=20details=20(#186)?= 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 91acbff7..edaa1d43 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.