From 627ed9439b08648854975ec646bc3301455f4f1d Mon Sep 17 00:00:00 2001 From: Yanzhen Yu Date: Fri, 31 May 2019 15:28:45 +0800 Subject: [PATCH] emit mouse interaction event during replay --- src/replay/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/replay/index.ts b/src/replay/index.ts index 09649289..75007bc5 100644 --- a/src/replay/index.ts +++ b/src/replay/index.ts @@ -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) {