From be7741ed8937025a86cf99f8744383c4b532d6c1 Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Wed, 17 Jan 2018 14:13:44 +0100 Subject: [PATCH] Resetting already started sounds before unlocking --- src/sound/html5/HTML5AudioSoundManager.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sound/html5/HTML5AudioSoundManager.js b/src/sound/html5/HTML5AudioSoundManager.js index b73c789e6..07b6a3381 100644 --- a/src/sound/html5/HTML5AudioSoundManager.js +++ b/src/sound/html5/HTML5AudioSoundManager.js @@ -82,6 +82,10 @@ var HTML5AudioSoundManager = new Class({ } return true; }); + _this.forEachActiveSound(function (sound) { + sound.pause(); + sound.resume(); + }); }; document.body.addEventListener('touchend', unlock_1, false); }