diff --git a/lib/app/(public)/home_page.dart b/lib/app/(public)/home_page.dart index 8689dd2..869cb04 100644 --- a/lib/app/(public)/home_page.dart +++ b/lib/app/(public)/home_page.dart @@ -82,7 +82,9 @@ class _HomePageState extends State { switch (event) { case GamepadButton.dpadDown || GamepadButton.leftStickDown: - handlerSelect((selectedItemIndex + crossAxisCount) % games.length); + handlerSelect((selectedItemIndex + crossAxisCount) < games.length + ? selectedItemIndex + crossAxisCount + : selectedItemIndex); case GamepadButton.dpadUp || GamepadButton.leftStickUp: handlerSelect((selectedItemIndex - crossAxisCount) >= 0 ? selectedItemIndex - crossAxisCount