From 43a93cee056f6971e4dc67c435e30e8fc29a19b9 Mon Sep 17 00:00:00 2001 From: Cary Sandvig Date: Fri, 20 Apr 2001 17:16:55 +0000 Subject: [PATCH] fix moving by 2 on left and right arrow keys --- direct/src/gui/ScrollingLabel.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/direct/src/gui/ScrollingLabel.py b/direct/src/gui/ScrollingLabel.py index 5ea9a420a3..749dfcf2ea 100644 --- a/direct/src/gui/ScrollingLabel.py +++ b/direct/src/gui/ScrollingLabel.py @@ -236,14 +236,18 @@ class ScrollingLabel(PandaObject.PandaObject): self.leftButton.getGuiItem().down() self.spawnButtonUpTask(self.leftButton) # 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): # make the button toggle self.rightButton.getGuiItem().down() self.spawnButtonUpTask(self.rightButton) # 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 buttonUp(state):