From b2806d6f81628ac59fb036f8e5c7c7f2bd04f8be Mon Sep 17 00:00:00 2001 From: Yanzhen Yu Date: Wed, 1 Apr 2026 12:00:00 +0800 Subject: [PATCH] emit pause and resume events --- src/replay/index.ts | 2 ++ src/replay/styles/style.css | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/replay/index.ts b/src/replay/index.ts index 5445cb46..de2db2d3 100644 --- a/src/replay/index.ts +++ b/src/replay/index.ts @@ -105,6 +105,7 @@ export class Replayer { public pause() { this.timer.clear(); + this.emitter.emit('pause'); } public resume(timeOffset = 0) { @@ -126,6 +127,7 @@ export class Replayer { } this.timer.addActions(actions); this.timer.start(); + this.emitter.emit('resume'); } private setupDom() { diff --git a/src/replay/styles/style.css b/src/replay/styles/style.css index 02d0e778..d4773593 100644 --- a/src/replay/styles/style.css +++ b/src/replay/styles/style.css @@ -21,7 +21,7 @@ opacity: 0.3; } .replayer-mouse.active::after { - animation: click 0.3s ease-in-out 1; + animation: click 0.2s ease-in-out 1; } @keyframes click {