emit mouse interaction event during replay

This commit is contained in:
Yanzhen Yu
2019-05-31 15:28:45 +08:00
parent 7292f33767
commit 627ed9439b

View File

@@ -457,6 +457,10 @@ export class Replayer {
if (!target) {
return this.debugNodeNotFound(d, d.id);
}
this.emitter.emit(ReplayerEvents.MouseInteraction, {
type: d.type,
target,
});
switch (d.type) {
case MouseInteractions.Blur:
if (((target as Node) as HTMLElement).blur) {