Skip to content

Commit c2f7795

Browse files
Using checkTouchLocked with volume property
1 parent a9a3c3c commit c2f7795

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
@@ -313,6 +313,9 @@ Object.defineProperty(HTML5AudioSound.prototype, 'volume', {
313313
},
314314
set: function (value) {
315315
this.currentConfig.volume = value;
316+
if (this.checkTouchLocked('property', 'volume', value)) {
317+
return;
318+
}
316319
this.setVolume();
317320
this.emit('volume', this, value);
318321
}

0 commit comments

Comments
 (0)