From 456f8548636a90a250d09c3c30d1fd86d2b93a8d Mon Sep 17 00:00:00 2001 From: Markury Date: Sun, 5 Oct 2025 01:40:50 -0400 Subject: [PATCH] refactor(ui): update albums interaction to double click for consistency --- src/routes/library/+page.svelte | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/routes/library/+page.svelte b/src/routes/library/+page.svelte index 88375b7..de41947 100644 --- a/src/routes/library/+page.svelte +++ b/src/routes/library/+page.svelte @@ -124,8 +124,11 @@ selectedArtistIndex = index; } - function handleAlbumClick(album: Album, index: number) { + function handleAlbumClick(index: number) { selectedAlbumIndex = index; + } + + function handleAlbumDoubleClick(album: Album) { const artistEncoded = encodeURIComponent(album.artist); const albumEncoded = encodeURIComponent(album.title); goto(`/albums/${artistEncoded}/${albumEncoded}`); @@ -238,7 +241,8 @@ {#each albums as album, i} handleAlbumClick(album, i)} + onclick={() => handleAlbumClick(i)} + ondblclick={() => handleAlbumDoubleClick(album)} > {#if album.coverArtPath}