fix(CountersSelector): broken pageDown
This commit is contained in:
parent
4b7a38ebf0
commit
598bf7bfa5
@ -231,7 +231,7 @@ local function CountersSelector(initialCountersMap, config)
|
||||
elseif keyPressed == keys.pageUp then
|
||||
selectedCounter = math.max(1, selectedCounter - nbOfElemsPerPage)
|
||||
elseif keyPressed == keys.pageDown then
|
||||
selectedCounter = max.max(nbCounters, selectedCounter + nbOfElemsPerPage)
|
||||
selectedCounter = math.min(nbCounters, selectedCounter + nbOfElemsPerPage)
|
||||
elseif keyPressed == keys.left and globalCounter > 0 then
|
||||
if decrementSelectedCounter(countersMap, selectedCounter) then
|
||||
globalCounter = globalCounter - 1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user