Skip to content

Commit

Permalink
Merge pull request #28 from LottieFiles/fix/stop-last-frame
Browse files Browse the repository at this point in the history
fix: stopped reseting to start when not looping
  • Loading branch information
samuelOsborne authored Jul 11, 2022
2 parents 3284fca + 2906897 commit db7fc91
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.0.9

### Patch Changes

- c00ddb6: removed reset if not looping

## 1.0.8

### Patch Changes
Expand Down
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
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

0 comments on commit db7fc91

Please sign in to comment.