Skip to content

Commit 300ac5b

Browse files
Using checkTouchLocked with play method
1 parent 093f295 commit 300ac5b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ var HTML5AudioSound = new Class({
6464
BaseSound.call(this, manager, key, config);
6565
},
6666
play: function (markerName, config) {
67+
if (this.checkTouchLocked('method', 'play', [markerName, config])) {
68+
return false;
69+
}
6770
if (!BaseSound.prototype.play.call(this, markerName, config)) {
6871
return false;
6972
}

0 commit comments

Comments
 (0)