From 44a8f9ffe1154239601952f1202775908f38f966 Mon Sep 17 00:00:00 2001 From: Jinny You Date: Thu, 4 Jan 2024 15:40:06 +0900 Subject: [PATCH] web: Improve stop animation behavior `stop` worked like `pause`, when stopping animation, frame should be at 0 --- web/src/lottie-player.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/lottie-player.ts b/web/src/lottie-player.ts index f4aa1c35..57e6528a 100644 --- a/web/src/lottie-player.ts +++ b/web/src/lottie-player.ts @@ -476,7 +476,7 @@ export class LottiePlayer extends LitElement { this.currentState = PlayerState.Stopped; this.currentFrame = 0; this._counter = 1; - this._TVG.frame(0); + this.seek(0); this.dispatchEvent(new CustomEvent(PlayerEvent.Stop)); }