pregress handling for artists
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Artem Anufrij
2023-09-19 15:16:23 +02:00
parent 62091a02a3
commit 724f35dfb1
2 changed files with 42 additions and 65 deletions

View File

@@ -145,9 +145,9 @@ export default {
this.pushHistoryItem();
if (this.selectedTrack.parent.progress) {
this.skipToSecond(this.selectedTrack.parent.progress.progress);
this.selectedTrack.parent.progress = undefined;
if (this.currentTrackParent.progress) {
this.skipToSecond(this.currentTrackParent.progress.progress);
this.currentTrackParent.progress = undefined;
} else {
// Try to fix SAFARI
this.audio.play();
@@ -275,7 +275,7 @@ export default {
this.progress = this.audio.currentTime;
let item = {
id: this.selectedTrack._id,
parentId: this.selectedTrack.parent._id,
parentId: this.currentTrackParent._id,
type: "track",
progress: Math.round(this.progress)
}