mirror of
https://github.com/photonstorm/phaser
synced 2025-01-05 09:48:49 +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;
|
this.onBlurPausedSounds.length = 0;
|
||||||
},
|
},
|
||||||
|
update: function () {
|
||||||
|
if (this.touchUnlocked) {
|
||||||
|
this.touchUnlocked = false;
|
||||||
|
this.touchLocked = false;
|
||||||
|
}
|
||||||
|
BaseSoundManager.prototype.update.call(this);
|
||||||
|
},
|
||||||
destroy: function () {
|
destroy: function () {
|
||||||
BaseSoundManager.prototype.destroy.call(this);
|
BaseSoundManager.prototype.destroy.call(this);
|
||||||
this.onBlurPausedSounds.length = 0;
|
this.onBlurPausedSounds.length = 0;
|
||||||
|
|
Loading…
Reference in a new issue