mirror of
https://github.com/photonstorm/phaser
synced 2025-01-05 09:48:49 +00:00
onLoad needs to be called from timeout callback in order to not cause issues
This commit is contained in:
parent
e75731df87
commit
5720dff5dc
1 changed files with 5 additions and 1 deletions
|
@ -100,7 +100,11 @@ var HTML5AudioFile = new Class({
|
||||||
|
|
||||||
if (touchLocked)
|
if (touchLocked)
|
||||||
{
|
{
|
||||||
this.onLoad();
|
setTimeout(function ()
|
||||||
|
{
|
||||||
|
this.onLoad();
|
||||||
|
|
||||||
|
}.bind(this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue