make sure emit EventCast after cast fn
This commit is contained in:
@@ -627,6 +627,8 @@ export class Replayer {
|
||||
finish();
|
||||
}
|
||||
}
|
||||
|
||||
this.emitter.emit(ReplayerEvents.EventCast, event);
|
||||
};
|
||||
return wrappedCastFn;
|
||||
}
|
||||
|
||||
@@ -204,7 +204,6 @@ export function createPlayerService(
|
||||
actions.push({
|
||||
doAction: () => {
|
||||
castFn();
|
||||
emitter.emit(ReplayerEvents.EventCast, event);
|
||||
},
|
||||
delay: event.delay!,
|
||||
});
|
||||
@@ -269,7 +268,6 @@ export function createPlayerService(
|
||||
timer.addAction({
|
||||
doAction: () => {
|
||||
castFn();
|
||||
emitter.emit(ReplayerEvents.EventCast, event);
|
||||
},
|
||||
delay: event.delay!,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user