Skip to content

Commit

Permalink
Fix: reset loop at beginning when stop playing
Browse files Browse the repository at this point in the history
  • Loading branch information
domi7777 authored Oct 28, 2024
1 parent f6812a7 commit 6a9b70b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Loop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export class Loop {

private stopPlaying() {
this.loopTimeout && clearTimeout(this.loopTimeout);
this.currentLoopIndex = 0;
this.log('Loop stopped');
}

Expand Down

0 comments on commit 6a9b70b

Please sign in to comment.