Fix audio skipping to second track after crossfade
Summary
- The old audio element could fire
endednaturally (if the song was near its end) after the crossfade completed, which triggeredhandleAudioEndedand skipped the new album to track 2 - Replaced the
fadingOutflag with a cleaner guard: only handleendedanderrorevents from the currently active audio element