···11# Changelog
2233+## Next
44+- Fix selection being created on videos page refresh
55+36## 1.7.0 - 2024 Jan 21
47- Add basic history page, accessible via `Cmd/Ctrl+Y`.
58- Fix selection staying in the same position when videos update
+2-3
src/routes/+page.svelte
···24242525 // Update the selection index if the video moves
2626 const newSelectedIndex = videos.findIndex((v) => v.id === selectedId)
2727- if (newSelectedIndex >= 0) {
2727+ if (newSelectedIndex >= 0 && selectionVisible) {
2828 selectedIndex = newSelectedIndex
2929- selectionVisible = true
3029 } else {
3130 // Or clear selection if the video disappeared from view
3231 selectedIndex = 0
3332 selectionVisible = false
3433 }
3535- const selectionMoved = selectionVisible && selectedIndex !== oldselectedIndex
3434+ const selectionMoved = selectedIndex !== oldselectedIndex && selectionVisible
36353736 if (selectionMoved) {
3837 allowScrollToBox = false