From c00ddb6c8fd263fb9e641896faa7673891cc0449 Mon Sep 17 00:00:00 2001 From: samuelOsborne Date: Mon, 11 Jul 2022 11:18:09 +0200 Subject: [PATCH 1/2] fix: stopped reseting to start when not looping --- .changeset/silver-pets-fold.md | 5 +++++ example/components/Home.vue | 2 +- src/Player.vue | 6 ------ 3 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 .changeset/silver-pets-fold.md diff --git a/.changeset/silver-pets-fold.md b/.changeset/silver-pets-fold.md new file mode 100644 index 0000000..a6150ac --- /dev/null +++ b/.changeset/silver-pets-fold.md @@ -0,0 +1,5 @@ +--- +"@lottiefiles/vue-lottie-player": patch +--- + +removed reset if not looping diff --git a/example/components/Home.vue b/example/components/Home.vue index 9ae53d8..3ddd1f5 100644 --- a/example/components/Home.vue +++ b/example/components/Home.vue @@ -14,7 +14,7 @@ :player-size="options.playerSize" :player-controls="true" :showColorPicker="true" - :loop="true" + :loop="false" :speed="3" :autoplay="true" mode="normal" diff --git a/src/Player.vue b/src/Player.vue index f8f0dec..2e086c1 100644 --- a/src/Player.vue +++ b/src/Player.vue @@ -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; From 2906897bd8f9e8f372983548594f612f8bb5ce65 Mon Sep 17 00:00:00 2001 From: samuelOsborne Date: Mon, 11 Jul 2022 11:19:42 +0200 Subject: [PATCH 2/2] chore: version bump --- .changeset/silver-pets-fold.md | 5 ----- CHANGELOG.md | 6 ++++++ package.json | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 .changeset/silver-pets-fold.md diff --git a/.changeset/silver-pets-fold.md b/.changeset/silver-pets-fold.md deleted file mode 100644 index a6150ac..0000000 --- a/.changeset/silver-pets-fold.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@lottiefiles/vue-lottie-player": patch ---- - -removed reset if not looping diff --git a/CHANGELOG.md b/CHANGELOG.md index ade6b14..0b0ec10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 1.0.9 + +### Patch Changes + +- c00ddb6: removed reset if not looping + ## 1.0.8 ### Patch Changes diff --git a/package.json b/package.json index 9374f0a..10bf983 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lottiefiles/vue-lottie-player", - "version": "1.0.8", + "version": "1.0.9", "description": "Lottie player wrapper for Vue.js by LottieFiles", "scripts": { "build": "vue-cli-service build --target lib --name vue-lottie-player ./src/index.js && rm ./dist/demo.html",