saving
This commit is contained in:
parent
c02fd261e4
commit
336e5db0be
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue