Skip to content

Commit a03787c

Browse files
committed
fix: Ext djMode: Queue on double click
1 parent 64a7c75 commit a03787c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Extensions/djMode.js

+10
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@
178178

179179
playButton.setAttribute("djmode-injected", "true");
180180
playButton.onclick = clickFunc(songURI);
181+
182+
cell.parentElement.ondblclick = (event) => {
183+
clickFunc(songURI)();
184+
event.stopImmediatePropagation();
185+
};
181186
});
182187

183188
if (setting.hideControls) {
@@ -222,6 +227,11 @@
222227

223228
newButton.onclick = clickFunc(songURI);
224229
};
230+
231+
cell.parentElement.ondblclick = (event) => {
232+
clickFunc(songURI)();
233+
event.stopImmediatePropagation();
234+
};
225235
});
226236

227237
if (setting.hideControls) {

0 commit comments

Comments
 (0)