dabo Commit
Revision 7267
Date: 2012-10-05 11:21:21 -0700 (Fri, 05 Oct 2012)
Author: Paul
Trac: http://trac.dabodev.com/changeset/7267
Changed:
U trunk/dabo/ui/uiwx/dGrid.py
Log:
Run the scroll immediately if it's been more than 1/2 second since the last
mouse
wheel action. I had intended my code to run it if it was more than 1/10 second,
but had time.time() off by an order of magnitude. Further tested tells me 1/2
second seems to work well.
Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2012-10-04 22:42:38 UTC (rev 7266)
+++ trunk/dabo/ui/uiwx/dGrid.py 2012-10-05 18:21:21 UTC (rev 7267)
@@ -3737,7 +3737,7 @@
mult = -1
linesPerAction = ui.GetLinesPerAction()
scrollAmt = mult * linesPerAction
- if thisWheelTime - lastWheelTime > 100:
+ if thisWheelTime - lastWheelTime > .5:
## Run the first wheel scroll to occur immediately:
self._scrollLines(scrollAmt)
return
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]