mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 22:52:14 +00:00
Implemented onFocus method for HTML5AudioSoundManager class
This commit is contained in:
parent
06bc5d62fc
commit
4d768c1c6a
1 changed files with 6 additions and 0 deletions
|
@ -19,6 +19,12 @@ var HTML5AudioSoundManager = new Class({
|
|||
sound.pause();
|
||||
}
|
||||
});
|
||||
},
|
||||
onFocus: function () {
|
||||
this.onBlurPausedSounds.forEach(function (sound) {
|
||||
sound.resume();
|
||||
});
|
||||
this.onBlurPausedSounds.length = 0;
|
||||
}
|
||||
});
|
||||
module.exports = HTML5AudioSoundManager;
|
||||
|
|
Loading…
Reference in a new issue