emit pause and resume events

This commit is contained in:
Yanzhen Yu
2018-12-06 18:04:40 +08:00
parent 9d627d1912
commit fda6d1c873
2 changed files with 3 additions and 1 deletions

View File

@@ -105,6 +105,7 @@ export class Replayer {
public pause() { public pause() {
this.timer.clear(); this.timer.clear();
this.emitter.emit('pause');
} }
public resume(timeOffset = 0) { public resume(timeOffset = 0) {
@@ -126,6 +127,7 @@ export class Replayer {
} }
this.timer.addActions(actions); this.timer.addActions(actions);
this.timer.start(); this.timer.start();
this.emitter.emit('resume');
} }
private setupDom() { private setupDom() {

View File

@@ -21,7 +21,7 @@
opacity: 0.3; opacity: 0.3;
} }
.replayer-mouse.active::after { .replayer-mouse.active::after {
animation: click 0.3s ease-in-out 1; animation: click 0.2s ease-in-out 1;
} }
@keyframes click { @keyframes click {