ScrollContainer properly responds to pgup/down

This commit is contained in:
Sasha Koshka 2024-07-27 00:19:31 -04:00
parent 2722d19ecd
commit b9c77fd5f7

View File

@ -200,6 +200,7 @@ func (this *ScrollContainer) handleKeyDown (key input.Key, numpad bool) bool {
} else {
vector.Y -= this.PageSize().Y
}
this.scrollBy(vector)
return true
case input.KeyPageDown:
if modifiers.Shift {
@ -207,6 +208,7 @@ func (this *ScrollContainer) handleKeyDown (key input.Key, numpad bool) bool {
} else {
vector.Y += this.PageSize().Y
}
this.scrollBy(vector)
return true
}
return false