Fix pause menu scrolling and gamepad navigation: - Remove fillViewport from ScrollView to allow proper scrolling - Add explicit scrollToSelectedItem calls in menu navigation - Ensure selected item is always visible when navigating with gamepad

This commit is contained in:
cmclark00 2025-03-31 13:46:44 -04:00
parent 05a504bb21
commit 240f16be82
2 changed files with 11 additions and 3 deletions

View file

@ -1224,6 +1224,8 @@ class MainActivity : AppCompatActivity(),
runOnUiThread {
if (binding.pauseContainer.visibility == View.VISIBLE) {
moveMenuSelectionUp()
// Ensure the selected item is visible
scrollToSelectedItem()
}
}
}
@ -1232,6 +1234,8 @@ class MainActivity : AppCompatActivity(),
runOnUiThread {
if (binding.pauseContainer.visibility == View.VISIBLE) {
moveMenuSelectionDown()
// Ensure the selected item is visible
scrollToSelectedItem()
}
}
}