feat: scroll queue if mouse if not over the area

This commit is contained in:
geoffrey45
2022-06-11 11:12:47 +03:00
parent 191ac0bc7b
commit 188834de3b
4 changed files with 20 additions and 9 deletions
+1 -1
View File
@@ -66,13 +66,13 @@ export default defineStore("Queue", {
this.updateCurrent(track);
new Promise((resolve, reject) => {
this.audio.autoplay = true;
this.audio.src = uri;
this.audio.oncanplaythrough = resolve;
this.audio.onerror = reject;
})
.then(() => {
this.track.duration = this.audio.duration;
this.audio.play().then(() => {
this.playing = true;
notif(track, this.playPause, this.playNext, this.playPrev);