Calling sound's onBlur method instead of pause when sounds stop on game focus loss

This commit is contained in:
Pavle Goloskokovic 2018-01-14 15:36:39 +01:00
parent 5c5df3f582
commit 381799b040

View file

@ -76,7 +76,7 @@ var HTML5AudioSoundManager = new Class({
this.forEachActiveSound(function (sound) { this.forEachActiveSound(function (sound) {
if (sound.isPlaying) { if (sound.isPlaying) {
this.onBlurPausedSounds.push(sound); this.onBlurPausedSounds.push(sound);
sound.pause(); sound.onBlur();
} }
}); });
}, },