Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: stopped reseting to start when not looping #28

Merged
merged 2 commits into from
Jul 11, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: stopped reseting to start when not looping
  • Loading branch information
samuelOsborne committed Jul 11, 2022
commit c00ddb6c8fd263fb9e641896faa7673891cc0449
5 changes: 5 additions & 0 deletions .changeset/silver-pets-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lottiefiles/vue-lottie-player": patch
---

removed reset if not looping
2 changes: 1 addition & 1 deletion example/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
:player-size="options.playerSize"
:player-controls="true"
:showColorPicker="true"
:loop="true"
:loop="false"
:speed="3"
:autoplay="true"
mode="normal"
Expand Down
6 changes: 0 additions & 6 deletions src/Player.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,6 @@ export default {
this.loading = false;
}.bind(this)
);
this.player.addEventListener(
"complete",
function () {
this.stop();
}.bind(this)
);
this.options.backgroundColor = this.backgroundColor;
this.options.speed = this.speed;
this.options.loop = this.loop;
Expand Down