mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 23:20:59 +00:00
Checking if audio is locked each time unlock method is called and skipping it in case it is not
This commit is contained in:
parent
c2d661f600
commit
04c842f749
1 changed files with 7 additions and 0 deletions
|
@ -154,6 +154,13 @@ var HTML5AudioSoundManager = new Class({
|
|||
*/
|
||||
unlock: function ()
|
||||
{
|
||||
this.locked = 'ontouchstart' in window;
|
||||
|
||||
if(!this.locked)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var _this = this;
|
||||
|
||||
var moved = false;
|
||||
|
|
Loading…
Reference in a new issue