Skip to content

Commit db7fc91

Browse files
Merge pull request #28 from LottieFiles/fix/stop-last-frame
fix: stopped reseting to start when not looping
2 parents 3284fca + 2906897 commit db7fc91

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 1.0.9
4+
5+
### Patch Changes
6+
7+
- c00ddb6: removed reset if not looping
8+
39
## 1.0.8
410

511
### Patch Changes

example/components/Home.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
:player-size="options.playerSize"
1515
:player-controls="true"
1616
:showColorPicker="true"
17-
:loop="true"
17+
:loop="false"
1818
:speed="3"
1919
:autoplay="true"
2020
mode="normal"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lottiefiles/vue-lottie-player",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"description": "Lottie player wrapper for Vue.js by LottieFiles",
55
"scripts": {
66
"build": "vue-cli-service build --target lib --name vue-lottie-player ./src/index.js && rm ./dist/demo.html",

src/Player.vue

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,6 @@ export default {
179179
this.loading = false;
180180
}.bind(this)
181181
);
182-
this.player.addEventListener(
183-
"complete",
184-
function () {
185-
this.stop();
186-
}.bind(this)
187-
);
188182
this.options.backgroundColor = this.backgroundColor;
189183
this.options.speed = this.speed;
190184
this.options.loop = this.loop;

0 commit comments

Comments
 (0)