mirror of
https://github.com/cmclark00/mintris.git
synced 2025-05-18 10:25:19 +01:00
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:
parent
05a504bb21
commit
240f16be82
2 changed files with 11 additions and 3 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue