Skip to content

Commit

Permalink
fix: Go to the previous song before switch
Browse files Browse the repository at this point in the history
Signed-off-by: EndCredits <[email protected]>
  • Loading branch information
EndCredits committed Jan 31, 2024
1 parent 5d92309 commit ee75308
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/web/utils/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,10 @@ export class Player {
this.trackList = this.trackList.filter(item => item != trackID)
return
}
this.nextTrack() // If we are deleting current playing. Switch to the next first
// If we are deleting current playing. Switch to the next first
this.prevTrack()
this.trackList = this.trackList.filter(item => item != trackID)
this.nextTrack()
}

/**
Expand Down

0 comments on commit ee75308

Please sign in to comment.