dev/playlists #13

Merged
peterino merged 19 commits from dev/playlists into integration 2026-02-09 18:58:41 +00:00
1 changed files with 0 additions and 2 deletions
Showing only changes of commit 336e5db0be - Show all commits

View File

@ -276,7 +276,6 @@
// Drag start/end handlers - library/playlist always (read access), queue needs edit permission
const canDrag = type === 'library' || type === 'playlist' || (type === 'queue' && canEditQueue);
console.log(`[Drag] wireTrackEvents: type=${type} canDrag=${canDrag} canEditQueue=${canEditQueue}`);
if (canDrag) {
div.ondragstart = (e) => handleDragStart(e, track, originalIndex, div);
div.ondragend = (e) => handleDragEnd(e, div);
@ -284,7 +283,6 @@
// Drop handlers - queue and playlist accept drops
if (canEditQueue && type === 'queue') {
console.log(`[Drag] Wiring drop handlers for queue track ${originalIndex}`);
div.ondragover = (e) => handleDragOver(e, div, originalIndex);
div.ondragleave = (e) => handleDragLeave(e, div);
div.ondrop = (e) => handleDrop(e, div, originalIndex);