From 0060264b78d323169c1dcc9752d9408f05375e97 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Sun, 27 Nov 2022 19:17:10 +0100 Subject: [PATCH] RLottie: Fix missing first frame during heavy animation --- src/lib/rlottie/RLottie.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/rlottie/RLottie.ts b/src/lib/rlottie/RLottie.ts index 9e1d1661c..279bc0bf2 100644 --- a/src/lib/rlottie/RLottie.ts +++ b/src/lib/rlottie/RLottie.ts @@ -445,7 +445,10 @@ class RLottie { // Paused from outside if (!this.isAnimating) { - return false; + const areAllLoaded = Array.from(this.containers.values()).every(({ isLoaded }) => isLoaded); + if (areAllLoaded) { + return false; + } } const frameIndex = Math.round(this.approxFrameIndex);