summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJust van Rossum <just@lettererror.com>1999-04-21 09:24:02 (GMT)
committerJust van Rossum <just@lettererror.com>1999-04-21 09:24:02 (GMT)
commiteb67a7b9809adac2767e808e36c75d5acbf59f66 (patch)
tree975e4741071cbf23c7389f703ef7b2cae91147e3 /Mac
parent7ceb5777d7e6e6c482e4e887b5a7e63e8a903789 (diff)
downloadcpython-eb67a7b9809adac2767e808e36c75d5acbf59f66.zip
cpython-eb67a7b9809adac2767e808e36c75d5acbf59f66.tar.gz
cpython-eb67a7b9809adac2767e808e36c75d5acbf59f66.tar.bz2
improved scrollbar delay behavior -- jvr
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Tools/IDE/Wcontrols.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Mac/Tools/IDE/Wcontrols.py b/Mac/Tools/IDE/Wcontrols.py
index c5511d4..7add904 100644
--- a/Mac/Tools/IDE/Wcontrols.py
+++ b/Mac/Tools/IDE/Wcontrols.py
@@ -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: