fix: clicking a specific song always starts at that position, bypasses shuffle
This commit is contained in:
1 parent
4e6f8782ca
commit
e5076f47d9
1 file changed
+1
-1
+1
-1
@@ -69,7 +69,7 @@ export function makeSongItem(s, idx, list, { noArtistLink = false } = {}) {
|
||||
const btns = el.querySelectorAll('.icon-btn');
|
||||
btns[0].onclick = (e) => { e.stopPropagation(); toggleStar(s, btns[0]); };
|
||||
btns[1].onclick = (e) => { e.stopPropagation(); showCtxMenu(e, s, list, idx); };
|
||||
el.onclick = () => playQueue(list, idx);
|
||||
el.onclick = () => playQueue(list, idx, { noShuffle: true });
|
||||
el.addEventListener('contextmenu', e => { e.preventDefault(); showCtxMenu(e, s, list, idx); });
|
||||
return el;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user