Skip to content

Commit 84a2039

Browse files
Using checkTouchLocked with loop property
1 parent 33bc3d8 commit 84a2039

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
@@ -408,6 +408,9 @@ Object.defineProperty(HTML5AudioSound.prototype, 'loop', {
408408
},
409409
set: function (value) {
410410
this.currentConfig.loop = value;
411+
if (this.checkTouchLocked('property', 'loop', value)) {
412+
return;
413+
}
411414
if (this.audio) {
412415
this.audio.loop = value;
413416
}

0 commit comments

Comments
 (0)