This commit is contained in:
peterino2 2026-02-07 00:52:39 -08:00
parent c02fd261e4
commit 336e5db0be
1 changed files with 0 additions and 2 deletions

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);