mirror of
https://github.com/photonstorm/phaser
synced 2024-12-17 08:33:40 +00:00
Sorting actions to be performed in chronological order
This commit is contained in:
parent
d8e36615e7
commit
04b9996ac7
1 changed files with 3 additions and 0 deletions
|
@ -136,6 +136,9 @@ var HTML5AudioSoundManager = new Class({
|
|||
allSoundsTouchLockedActionQueue_1.push(touchLockedAction);
|
||||
});
|
||||
});
|
||||
allSoundsTouchLockedActionQueue_1.sort(function (tla1, tla2) {
|
||||
return tla1.time - tla2.time;
|
||||
});
|
||||
allSoundsTouchLockedActionQueue_1.forEach(function (touchLockedAction) {
|
||||
switch (touchLockedAction.type) {
|
||||
case 'method':
|
||||
|
|
Loading…
Reference in a new issue