Browse Source

fix moving by 2 on left and right arrow keys

Cary Sandvig 25 years ago
parent
commit
43a93cee05
1 changed files with 6 additions and 2 deletions
  1. 6 2
      direct/src/gui/ScrollingLabel.py

+ 6 - 2
direct/src/gui/ScrollingLabel.py

@@ -236,14 +236,18 @@ class ScrollingLabel(PandaObject.PandaObject):
         self.leftButton.getGuiItem().down()
         self.leftButton.getGuiItem().down()
         self.spawnButtonUpTask(self.leftButton)
         self.spawnButtonUpTask(self.leftButton)
         # then act like a mouse click
         # then act like a mouse click
-        self.handleLeftButton(self.leftButton.button)
+        # not needed, using the behavior system, this will happen once the
+        # button transitions to up again.
+        # self.handleLeftButton(self.leftButton.button)
 
 
     def handleRightArrow(self):
     def handleRightArrow(self):
         # make the button toggle
         # make the button toggle
         self.rightButton.getGuiItem().down()
         self.rightButton.getGuiItem().down()
         self.spawnButtonUpTask(self.rightButton)
         self.spawnButtonUpTask(self.rightButton)
         # then act like a mouse click
         # then act like a mouse click
-        self.handleRightButton(self.rightButton.button)
+        # not needed, using the behavior system, this will happen once the
+        # button transitions to up again.
+        # self.handleRightButton(self.rightButton.button)
 
 
     def spawnButtonUpTask(self, button):
     def spawnButtonUpTask(self, button):
         def buttonUp(state):
         def buttonUp(state):