Skip to content

Commit

Permalink
Scroolling fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
nagolove committed Jul 6, 2020
1 parent 09b891a commit 20cd2f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions conf.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
function love.conf(t)
t.window.width = 1024
t.window.height = 768
t.console = true
t.window.msaa = 4
t.window.fullscreen = false
Expand Down
3 changes: 1 addition & 2 deletions pviewer_list.lua
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,7 @@ function List:scrollDown()
end
self:putActiveInVisiblePlace()

--XXX self.end_i
if self.activeIndex + 1 <= self.start_i + self.visibleNum then
if self.activeIndex + 1 <= self.end_i then
self.activeIndex = self.activeIndex + 1
local item = self.items[self.activeIndex]
self.onclick(item, self.activeIndex)
Expand Down

0 comments on commit 20cd2f7

Please sign in to comment.