diff --git a/frontend/src/components/queue-panel/queue-panel.ts b/frontend/src/components/queue-panel/queue-panel.ts
index e204ec4..5926c94 100644
--- a/frontend/src/components/queue-panel/queue-panel.ts
+++ b/frontend/src/components/queue-panel/queue-panel.ts
@@ -1264,11 +1264,6 @@ export class QueuePanel
// Other handlers
// =================================================================
- private handleRemoveTrack(e: Event, position: number) {
- e.stopPropagation();
- this.queue.removeFromQueue(position);
- }
-
private getDisplayTitle(track: {
title: string;
filePath: string;
@@ -1328,6 +1323,8 @@ export class QueuePanel
dropIdx === trackCount &&
index === trackCount - 1;
+ // No inline closures — all events delegated via data-index
+ // on the virtualizer element (see firstUpdated).
return html`
- this.handleTrackClick(e, track, index)}
- @dblclick=${() =>
- this.handleTrackDblClick(index)}
- @contextmenu=${(e: MouseEvent) =>
- this.handleTrackContextMenu(e, index)}
- @dragstart=${(e: DragEvent) =>
- this.onTrackDragStart(e, index)}
- @dragend=${this.onTrackDragEnd}
>
${index + 1}
@@ -1362,8 +1350,6 @@ export class QueuePanel