Skip to content

Commit c00ddb6

Browse files
committed
fix: stopped reseting to start when not looping
1 parent 49f704a commit c00ddb6

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.changeset/silver-pets-fold.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@lottiefiles/vue-lottie-player": patch
3+
---
4+
5+
removed reset if not looping

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"

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)