add infinitely scroll up down in RomListPage

This commit is contained in:
cuu
2019-02-07 19:38:11 +08:00
parent cbb49f5f78
commit 8a205de3ca
6 changed files with 76 additions and 29 deletions

View File

@@ -252,6 +252,7 @@ type Page struct {
SelectedIconTopOffset int
EasingDur int
ScrollStep int
}
func NewPage() *Page {
@@ -261,7 +262,7 @@ func NewPage() *Page {
p.EasingDur = 10
p.Align = ALIGN["SLeft"]
p.ScrollStep = 1
p.FootMsg = [5]string{"Nav.","","","","Enter"}
return p