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
+5
View File
@@ -192,6 +192,11 @@ func (t *Tracklist) Reset() {
t.SetSorting(TracklistSort{})
}
func (t *Tracklist) Scroll(amount float32) {
t.list.ScrollToOffset(t.list.GetScrollOffset() + amount)
t.list.Refresh()
}
func (t *Tracklist) buildHeader() {
t.hdr = NewListHeader([]ListColumn{
{Text: "#", Alignment: fyne.TextAlignTrailing, CanToggleVisible: false},