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