let mouse tail duration respect timer speed

This commit is contained in:
Yanzhen Yu
2021-01-12 13:36:03 +08:00
parent 7f2c242782
commit c712fc77a6

View File

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