[Pychord-commits] r77 - trunk/pgui

danilo at garage.maemo.org danilo at garage.maemo.org
Fri Mar 28 18:24:07 EET 2008


Author: danilo
Date: 2008-03-28 18:24:06 +0200 (Fri, 28 Mar 2008)
New Revision: 77

Modified:
   trunk/pgui/list.py
Log:
Get the movement better

Modified: trunk/pgui/list.py
===================================================================
--- trunk/pgui/list.py	2008-03-28 16:18:58 UTC (rev 76)
+++ trunk/pgui/list.py	2008-03-28 16:24:06 UTC (rev 77)
@@ -75,8 +75,8 @@
             self.oldMoveFactor += moveFactor/float(pguiListMaximumSpeed)
             
             if self.oldMoveFactor > 1:
-                self.oldMoveFactor -= 1
-                self.move(-1)
+                self.move(-int(self.oldMoveFactor))
+                self.oldMoveFactor -= int(self.oldMoveFactor)
                 
         container.update(self)
                 
@@ -116,7 +116,7 @@
 
             
     def increaseSpeed(self):
-        self.autoScroll(self.autoScrollSpeed + 1)
+        self.autoScroll(self.autoScrollSpeed + 2)
         
     def decreaseSpeed(self):
-        self.autoScroll(self.autoScrollSpeed - 1)
\ No newline at end of file
+        self.autoScroll(self.autoScrollSpeed - 2)
\ No newline at end of file



More information about the Pychord-commits mailing list