Resetting already started sounds before unlocking

This commit is contained in:
Pavle Goloskokovic 2018-01-17 14:13:44 +01:00
parent 0b4a8b8b2d
commit be7741ed89

View file

@ -82,6 +82,10 @@ var HTML5AudioSoundManager = new Class({
} }
return true; return true;
}); });
_this.forEachActiveSound(function (sound) {
sound.pause();
sound.resume();
});
}; };
document.body.addEventListener('touchend', unlock_1, false); document.body.addEventListener('touchend', unlock_1, false);
} }