add keyboard scrolling to list views

This commit is contained in:
Drew Weymouth
2024-02-18 13:26:15 -08:00
parent 8d038ced64
commit a7309b08ca
10 changed files with 62 additions and 14 deletions
+6
View File
@@ -142,6 +142,12 @@ func (a *PlaylistPage) SelectAll() {
a.tracklist.SelectAll()
}
var _ Scrollable = (*PlaylistPage)(nil)
func (a *PlaylistPage) Scroll(scrollAmt float32) {
a.tracklist.Scroll(scrollAmt)
}
// should be called asynchronously
func (a *PlaylistPage) load() {
playlist, err := a.sm.Server.GetPlaylist(a.playlistID)