Commit b5ad35e6 authored by Just van Rossum's avatar Just van Rossum

improved scrollbar delay behavior -- jvr

parent f1e40cc4
......@@ -305,8 +305,11 @@ class Scrollbar(ControlWidget):
self._control.HiliteControl(part)
self._hit(part)
oldpart = part
import time
time.sleep(0.3)
# slight delay before scrolling at top speed...
now = Evt.TickCount()
while Evt.StillDown():
if (Evt.TickCount() - now) > 18: # 0.3 seconds
break
while Evt.StillDown():
part = self._control.TestControl(point)
if part == oldpart:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment