Browse Source

update scroll func

hi80482 3 years ago
parent
commit
fd75bef052
1 changed files with 2 additions and 10 deletions
  1. 2 10
      Menu/GameShell/10_Settings/Cores/__init__.py

+ 2 - 10
Menu/GameShell/10_Settings/Cores/__init__.py

@@ -210,20 +210,12 @@ class CoresPage(Page):
             self._Screen.SwapAndShow()
 
         if event.key == CurKeys["Left"]:    # PageUp
-            move = 3
-
-            for i in range(move):
-                self.ScrollUp()
-
+            self.ScrollUp(3)
             self._Screen.Draw()
             self._Screen.SwapAndShow()
 
         if event.key == CurKeys["Right"]:   # PageDown
-            move = 3
-            
-            for i in range(move):
-                self.ScrollDown()
-
+            self.ScrollDown(3)
             self._Screen.Draw()
             self._Screen.SwapAndShow()