Skip to content

Commit 04b9996

Browse files
Sorting actions to be performed in chronological order
1 parent d8e3661 commit 04b9996

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSoundManager.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ var HTML5AudioSoundManager = new Class({
136136
allSoundsTouchLockedActionQueue_1.push(touchLockedAction);
137137
});
138138
});
139+
allSoundsTouchLockedActionQueue_1.sort(function (tla1, tla2) {
140+
return tla1.time - tla2.time;
141+
});
139142
allSoundsTouchLockedActionQueue_1.forEach(function (touchLockedAction) {
140143
switch (touchLockedAction.type) {
141144
case 'method':

0 commit comments

Comments
 (0)