mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 15:22:19 +02:00
Looping cursor correctly going down from second-to-last row
This commit is contained in:
parent
2b535622ac
commit
4ca572c6c8
@ -1108,7 +1108,7 @@ export default class PokedexUiHandler extends MessageUiHandler {
|
||||
}
|
||||
break;
|
||||
case Button.DOWN:
|
||||
if (currentRow < numOfRows - 1) { // not last row
|
||||
if ((currentRow < numOfRows - 1) && (this.cursor + 9 < this.filteredPokemonData.length)) { // not last row
|
||||
if (currentRow - this.scrollCursor === 8) { // last row of visible pokemon
|
||||
this.scrollCursor++;
|
||||
this.updateScroll();
|
||||
|
Loading…
Reference in New Issue
Block a user