Skip to content

Commit

Permalink
fix(count off by 1): count adds an extra 1 as it starts from 0
Browse files Browse the repository at this point in the history
  • Loading branch information
karamalie committed Nov 9, 2021
1 parent 49dbde2 commit f4efda4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lottiefiles/lottie-player",
"version": "1.4.4",
"version": "1.4.5",
"description": "Lottie animation and Telegram Sticker player web components.",
"main": "dist/lottie-player.js",
"module": "dist/lottie-player.esm.js",
Expand Down
4 changes: 2 additions & 2 deletions src/lottie-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export class LottiePlayer extends LitElement {

private _prevState?: any;

private _counter: number = 0;
private _counter: number = 1;

/**
* Configure and initialize lottie-web player instance.
Expand Down Expand Up @@ -320,7 +320,7 @@ export class LottiePlayer extends LitElement {
return;
}

this._counter = 0;
this._counter = 1;
this._lottie.stop();
this.currentState = PlayerState.Stopped;

Expand Down

0 comments on commit f4efda4

Please sign in to comment.