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
+7
View File
@@ -93,6 +93,13 @@ func (a *GenresPage) SearchWidget() fyne.Focusable {
return a.searcher
}
var _ Scrollable = (*GenresPage)(nil)
func (a *GenresPage) Scroll(amount float32) {
a.list.list.ScrollToOffset(a.list.list.GetScrollOffset() + amount)
a.list.list.Refresh()
}
func (a *GenresPage) Route() controller.Route {
return controller.GenresRoute()
}