From b448c2bc829338c4ece4a5a18bc4a999c6ff6957 Mon Sep 17 00:00:00 2001 From: Psychotoxical Date: Mon, 6 Apr 2026 19:23:55 +0200 Subject: [PATCH] fix(queue): revert auto-scroll target back to queueIndex+1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The queue-current-track section already shows the active track above the list. Scrolling to queueIndex+1 (next track) is the correct behavior — it keeps the upcoming tracks in view, not the already-visible current one. Co-Authored-By: Claude Sonnet 4.6 --- src/components/QueuePanel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/QueuePanel.tsx b/src/components/QueuePanel.tsx index ad75ccf3..50d59410 100644 --- a/src/components/QueuePanel.tsx +++ b/src/components/QueuePanel.tsx @@ -333,7 +333,7 @@ export default function QueuePanel() { if (!queueListRef.current || queueIndex < 0) return; if (activeTab !== 'queue') return; const songs = queueListRef.current!.querySelectorAll('[data-queue-idx]'); - const nextSong = songs[queueIndex]; + const nextSong = songs[queueIndex + 1]; if (!nextSong) return; nextSong.scrollIntoView({ block: "start", behavior: "instant" }); }, [currentTrack, activeTab]);