Checking if audio is locked each time unlock method is called and skipping it in case it is not

This commit is contained in:
Pavle Goloskokovic 2018-04-14 17:51:31 +02:00
parent c2d661f600
commit 04c842f749

View file

@ -154,6 +154,13 @@ var HTML5AudioSoundManager = new Class({
*/
unlock: function ()
{
this.locked = 'ontouchstart' in window;
if(!this.locked)
{
return;
}
var _this = this;
var moved = false;