mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 13:44:42 +00:00
feat: scroll queue if mouse if not over the area
This commit is contained in:
1 parent
191ac0bc7b
commit
188834de3b
4 files changed
+20
-9
No files matched your search
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user