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,8 +445,11 @@ class RLottie {
// Paused from outside // Paused from outside
if (!this.isAnimating) { if (!this.isAnimating) {
const areAllLoaded = Array.from(this.containers.values()).every(({ isLoaded }) => isLoaded);
if (areAllLoaded) {
return false; return false;
} }
}
const frameIndex = Math.round(this.approxFrameIndex); const frameIndex = Math.round(this.approxFrameIndex);
const frame = this.getFrame(frameIndex); const frame = this.getFrame(frameIndex);