From c712fc77a6fd6dfa25364beb4de795a8c391c924 Mon Sep 17 00:00:00 2001 From: Yanzhen Yu Date: Tue, 12 Jan 2021 13:36:03 +0800 Subject: [PATCH] let mouse tail duration respect timer speed --- src/replay/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/replay/index.ts b/src/replay/index.ts index 6d570500..25f644ce 100644 --- a/src/replay/index.ts +++ b/src/replay/index.ts @@ -1328,7 +1328,7 @@ export class Replayer { setTimeout(() => { this.tailPositions = this.tailPositions.filter((p) => p !== position); draw(); - }, duration); + }, duration / this.speedService.state.context.timer.speed); } private hoverElements(el: Element) {