mirror of
https://github.com/photonstorm/phaser
synced 2024-12-17 16:43:30 +00:00
Setting unlocked property to true when audio context resumes
This commit is contained in:
parent
bf0c868bf3
commit
c6c3f1da79
1 changed files with 1 additions and 0 deletions
|
@ -93,6 +93,7 @@ var WebAudioSoundManager = new Class({
|
|||
_this.context.resume().then(function () {
|
||||
document.body.removeEventListener('touchstart', unlock);
|
||||
document.body.removeEventListener('touchend', unlock);
|
||||
_this.unlocked = true;
|
||||
});
|
||||
};
|
||||
document.body.addEventListener('touchstart', unlock, false);
|
||||
|
|
Loading…
Reference in a new issue