Skip to content

Commit 22154ce

Browse files
Using checkTouchLocked with stop method
1 parent 796f365 commit 22154ce

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
@@ -112,6 +112,9 @@ var HTML5AudioSound = new Class({
112112
return true;
113113
},
114114
stop: function () {
115+
if (this.checkTouchLocked('method', 'stop')) {
116+
return false;
117+
}
115118
if (!BaseSound.prototype.stop.call(this)) {
116119
return false;
117120
}

0 commit comments

Comments
 (0)