mirror of
https://github.com/photonstorm/phaser
synced 2024-12-17 16:43:30 +00:00
Added update method to handle unlocking
This commit is contained in:
parent
5916d9f423
commit
dc3938e8ff
1 changed files with 7 additions and 0 deletions
|
@ -126,6 +126,13 @@ var HTML5AudioSoundManager = new Class({
|
|||
});
|
||||
this.onBlurPausedSounds.length = 0;
|
||||
},
|
||||
update: function () {
|
||||
if (this.touchUnlocked) {
|
||||
this.touchUnlocked = false;
|
||||
this.touchLocked = false;
|
||||
}
|
||||
BaseSoundManager.prototype.update.call(this);
|
||||
},
|
||||
destroy: function () {
|
||||
BaseSoundManager.prototype.destroy.call(this);
|
||||
this.onBlurPausedSounds.length = 0;
|
||||
|
|
Loading…
Reference in a new issue