emit pause and resume events

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent f4596f5cea
commit b2806d6f81
2 changed files with 3 additions and 1 deletions

View File

@@ -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() {

View File

@@ -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 {