From 2b79f47d57149634926eaa0704ddc34807c927ba Mon Sep 17 00:00:00 2001 From: Artem Anufrij Date: Wed, 4 Oct 2023 11:29:32 +0200 Subject: [PATCH] push history item after 10%. fix #27 --- src/components/Player.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Player.vue b/src/components/Player.vue index f21e7a6..6e17002 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -146,8 +146,6 @@ export default { this.audio.pause(); this.audio.src = url; - this.pushHistoryItem(); - if (this.currentTrackParent.progress) { if (this.currentTrackParent.progress.id == this.selectedTrack._id) { this.skipToSecond(this.currentTrackParent.progress.progress); @@ -297,6 +295,7 @@ export default { track: this.selectedTrack, rate: this.audioBpm, }); + this.pushHistoryItem(); } }, },