[READ-ONLY] Mirror of https://github.com/probablykasper/kadium. App for staying ontop of YouTube channels' uploads kadium.kasper.space
linux macos notifications tauri windows youtube
0

Configure Feed

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

Fix selection created on videos page refresh

Kasper (Jan 28, 2024, 11:15 AM +0100) 3f8ed879 f76926bf

+5 -3
+3
CHANGELOG.md
··· 1 1 # Changelog 2 2 3 + ## Next 4 + - Fix selection being created on videos page refresh 5 + 3 6 ## 1.7.0 - 2024 Jan 21 4 7 - Add basic history page, accessible via `Cmd/Ctrl+Y`. 5 8 - Fix selection staying in the same position when videos update
+2 -3
src/routes/+page.svelte
··· 24 24 25 25 // Update the selection index if the video moves 26 26 const newSelectedIndex = videos.findIndex((v) => v.id === selectedId) 27 - if (newSelectedIndex >= 0) { 27 + if (newSelectedIndex >= 0 && selectionVisible) { 28 28 selectedIndex = newSelectedIndex 29 - selectionVisible = true 30 29 } else { 31 30 // Or clear selection if the video disappeared from view 32 31 selectedIndex = 0 33 32 selectionVisible = false 34 33 } 35 - const selectionMoved = selectionVisible && selectedIndex !== oldselectedIndex 34 + const selectionMoved = selectedIndex !== oldselectedIndex && selectionVisible 36 35 37 36 if (selectionMoved) { 38 37 allowScrollToBox = false