[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 drag line dragleave

Kasper (May 28, 2025, 11:34 AM +0200) 297bc1e2 f7fe7183

+8 -7
+8 -7
src/components/TrackList.svelte
··· 248 248 } 249 249 } 250 250 } 251 - async function drop_handler() { 251 + function drop_handler() { 252 252 if (drag_to_index !== null) { 253 253 move_tracks(params.playlist_id, drag_item_ids, drag_to_index) 254 254 drag_to_index = null 255 255 } 256 - } 257 - function drag_end_handler() { 258 - drag_to_index = null 259 256 } 260 257 261 258 function get_item(item_id: ItemId) { ··· 588 585 // } 589 586 // } 590 587 // } 591 - // async function col_drop_handler() { 588 + // function col_drop_handler() { 592 589 // if (col_drag_index !== null && col_drag_to_index !== null) { 593 590 // const move_to_left = col_drag_index < col_drag_to_index 594 591 // const removed_column = columns.splice(col_drag_index, 1)[0] ··· 690 687 } 691 688 }} 692 689 ondrop={drop_handler} 693 - ondragend={drag_end_handler} 690 + ondragend={() => { 691 + drag_to_index = null 692 + }} 693 + ondragleave={() => { 694 + drag_to_index = null 695 + }} 694 696 > 695 697 <div class="relative" slot="data-rgCol-rgRow"> 696 698 <div class="drag-line" class:hidden={drag_to_index === null} bind:this={drag_line}></div> ··· 701 703 bind:this={tracklist_element} 702 704 class="tracklist h-full" 703 705 role="table" 704 - on:dragleave={() => (drag_to_index = null)} 705 706 > 706 707 <div 707 708 class="row table-header border-b border-b-slate-500/30"