mirror of
https://github.com/photonstorm/phaser
synced 2025-03-06 00:07:31 +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.push(touchLockedAction);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
allSoundsTouchLockedActionQueue_1.sort(function (tla1, tla2) {
|
||||||
|
return tla1.time - tla2.time;
|
||||||
|
});
|
||||||
allSoundsTouchLockedActionQueue_1.forEach(function (touchLockedAction) {
|
allSoundsTouchLockedActionQueue_1.forEach(function (touchLockedAction) {
|
||||||
switch (touchLockedAction.type) {
|
switch (touchLockedAction.type) {
|
||||||
case 'method':
|
case 'method':
|
||||||
|
|
Loading…
Add table
Reference in a new issue