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