mirror of
https://github.com/photonstorm/phaser
synced 2025-03-06 00:07:31 +00:00
Using checkTouchLocked with pause method
This commit is contained in:
parent
300ac5b859
commit
893882fe95
1 changed files with 3 additions and 0 deletions
|
@ -78,6 +78,9 @@ var HTML5AudioSound = new Class({
|
|||
return true;
|
||||
},
|
||||
pause: function () {
|
||||
if (this.checkTouchLocked('method', 'pause')) {
|
||||
return false;
|
||||
}
|
||||
if (this.startTime > 0) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue