Skip to content

Fix audio skipping to second track after crossfade

jedmund requested to merge jedmund/multi-disc-scanning into main

Summary

  • The old audio element could fire ended naturally (if the song was near its end) after the crossfade completed, which triggered handleAudioEnded and skipped the new album to track 2
  • Replaced the fadingOut flag with a cleaner guard: only handle ended and error events from the currently active audio element

Merge request reports

Loading