RLottie: Fix missing first frame during heavy animation

This commit is contained in:
Alexander Zinchuk 2022-11-27 19:17:10 +01:00
parent 77bd8b3a0a
commit 0060264b78

View File

@ -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);