From c855778ea360738a172512a15a832d156200c68f Mon Sep 17 00:00:00 2001 From: Sterling Archer Date: Wed, 27 May 2026 15:26:22 -0700 Subject: [PATCH] Auto-scroll party select list to keep selected Pokemon visible --- game.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/game.js b/game.js index 68fff3a..c445cca 100644 --- a/game.js +++ b/game.js @@ -733,6 +733,9 @@ class Game { const entries = document.querySelectorAll('.party-select-entry'); entries.forEach((e, i) => { e.classList.toggle('party-selected', i === this._partySelectCursor && !e.classList.contains('fainted')); + if (i === this._partySelectCursor) { + e.scrollIntoView({ block:'nearest', behavior:'smooth' }); + } }); }