mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 20:14:37 +00:00
web: Improve stop animation behavior
`stop` worked like `pause`, when stopping animation, frame should be at 0
This commit is contained in:
parent
2e2d19b98c
commit
44a8f9ffe1
1 changed files with 1 additions and 1 deletions
|
@ -476,7 +476,7 @@ export class LottiePlayer extends LitElement {
|
||||||
this.currentState = PlayerState.Stopped;
|
this.currentState = PlayerState.Stopped;
|
||||||
this.currentFrame = 0;
|
this.currentFrame = 0;
|
||||||
this._counter = 1;
|
this._counter = 1;
|
||||||
this._TVG.frame(0);
|
this.seek(0);
|
||||||
|
|
||||||
this.dispatchEvent(new CustomEvent(PlayerEvent.Stop));
|
this.dispatchEvent(new CustomEvent(PlayerEvent.Stop));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue