Using checkTouchLocked with play method

This commit is contained in:
Pavle Goloskokovic 2018-01-17 17:19:04 +01:00
parent 093f295389
commit 300ac5b859

View file

@ -64,6 +64,9 @@ var HTML5AudioSound = new Class({
BaseSound.call(this, manager, key, config);
},
play: function (markerName, config) {
if (this.checkTouchLocked('method', 'play', [markerName, config])) {
return false;
}
if (!BaseSound.prototype.play.call(this, markerName, config)) {
return false;
}