From dc3938e8ffb08aa70c03b415839171a61f242a1d Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Wed, 17 Jan 2018 17:32:41 +0100 Subject: [PATCH] Added update method to handle unlocking --- src/sound/html5/HTML5AudioSoundManager.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/sound/html5/HTML5AudioSoundManager.js b/src/sound/html5/HTML5AudioSoundManager.js index 4955eadbc..00daf95ec 100644 --- a/src/sound/html5/HTML5AudioSoundManager.js +++ b/src/sound/html5/HTML5AudioSoundManager.js @@ -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;