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