mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 14:40:38 +00:00
Calling sound's onBlur method instead of pause when sounds stop on game focus loss
This commit is contained in:
parent
5c5df3f582
commit
381799b040
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ var HTML5AudioSoundManager = new Class({
|
|||
this.forEachActiveSound(function (sound) {
|
||||
if (sound.isPlaying) {
|
||||
this.onBlurPausedSounds.push(sound);
|
||||
sound.pause();
|
||||
sound.onBlur();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue