[READ-ONLY] Mirror of https://github.com/probablykasper/ferrum. Music library app for Mac, Linux and Windows ferrum.kasper.space
electron linux macos music music-library music-player napi windows
0

Configure Feed

Select the types of activity you want to include in your feed.

Fix queue selection clearing on click

Kasper (Sep 27, 2024, 7:42 AM +0200) e423f593 965299a8

+5 -5
+3 -3
src/components/Queue.svelte
··· 184 184 bind:this={queue_element} 185 185 class="content relative -mt-px border-l outline-none" 186 186 tabindex="-1" 187 + on:mousedown|self={() => selection.clear()} 187 188 on:keydown={scroll_container_keydown} 188 189 on:keydown={(e) => { 189 190 if (check_shortcut(e, 'Backspace') && selection.items.size >= 1) { ··· 193 194 selection.handle_keydown(e) 194 195 } 195 196 }} 196 - on:mousedown|self={selection.clear} 197 197 > 198 198 {#if $queue.past.length || $queue.current} 199 199 <div class="relative"> ··· 281 281 <!-- svelte-ignore a11y-no-noninteractive-element-interactions --> 282 282 <h4 283 283 class="sticky top-0 z-1 flex h-[40px] items-center justify-between bg-black/50 px-7 font-semibold backdrop-blur-md" 284 - on:mousedown|self={selection.clear} 284 + on:mousedown|self={() => selection.clear()} 285 285 > 286 286 Up Next 287 287 {#if $queue.user_queue.length > 0} ··· 343 343 <!-- svelte-ignore a11y-no-noninteractive-element-interactions --> 344 344 <h4 345 345 class="sticky top-0 z-1 flex h-[40px] items-center bg-black/50 px-7 font-semibold backdrop-blur-md" 346 - on:mousedown={selection.clear} 346 + on:mousedown={() => selection.clear()} 347 347 > 348 348 Autoplay 349 349 </h4>
+2 -2
src/components/TrackList.svelte
··· 460 460 <div 461 461 bind:this={scroll_container} 462 462 class="main-focus-element relative h-full overflow-y-auto outline-none" 463 - on:keydown={keydown} 464 - on:mousedown|self={() => selection.clear()} 465 463 tabindex="0" 464 + on:mousedown|self={() => selection.clear()} 466 465 on:keydown={scroll_container_keydown} 466 + on:keydown={keydown} 467 467 > 468 468 <VirtualListBlock 469 469 bind:this={virtual_list}