a simple web player for subsonic tinysub.devins.page
subsonic navidrome javascript
11
fork

Configure Feed

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

chore: increase visiblestart and visibleend offset from 5 -> 8

prevents user from seeing any virtual scroll lag

+2 -2
+2 -2
src/lib/VirtualList.svelte
··· 29 29 }; 30 30 31 31 let visibleStart = $derived( 32 - Math.max(0, Math.floor(scrollTop / itemHeight) - 5), 32 + Math.max(0, Math.floor(scrollTop / itemHeight) - 8), 33 33 ); 34 34 let visibleEnd = $derived( 35 35 Math.min( 36 36 items.length, 37 - Math.ceil((scrollTop + containerHeight) / itemHeight) + 5, 37 + Math.ceil((scrollTop + containerHeight) / itemHeight) + 8, 38 38 ), 39 39 ); 40 40 </script>