Added update method to handle unlocking

This commit is contained in:
Pavle Goloskokovic 2018-01-17 17:32:41 +01:00
parent 5916d9f423
commit dc3938e8ff

View file

@ -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;