list mode for overview

This commit is contained in:
kepler155c@gmail.com
2020-03-31 23:43:45 -06:00
parent 3313fb986c
commit fc1a308193
5 changed files with 79 additions and 32 deletions

View File

@@ -77,6 +77,9 @@ function UI.Viewport:getViewArea()
end
function UI.Viewport:eventHandler(event)
if #self.lines <= self.height then
return
end
if event.type == 'scroll_down' then
self:setScrollPosition(self.offy + 1, self.offx)
elseif event.type == 'scroll_up' then