mirror of
https://github.com/photonstorm/phaser
synced 2024-12-17 16:43:30 +00:00
Using checkTouchLocked with mute property
This commit is contained in:
parent
22154ceace
commit
a9a3c3c2a2
1 changed files with 3 additions and 0 deletions
|
@ -294,6 +294,9 @@ Object.defineProperty(HTML5AudioSound.prototype, 'mute', {
|
|||
},
|
||||
set: function (value) {
|
||||
this.currentConfig.mute = value;
|
||||
if (this.checkTouchLocked('property', 'mute', value)) {
|
||||
return;
|
||||
}
|
||||
this.setMute();
|
||||
this.emit('mute', this, value);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue