From 6c487c4d34a0dc80b2ed942acb487d32f8938798 Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Thu, 22 Apr 1999 22:16:58 +0000 Subject: fixed glitch when scrolling very long files -- jvr --- Mac/Tools/IDE/Wtext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mac/Tools/IDE/Wtext.py b/Mac/Tools/IDE/Wtext.py index b3fb66c..963f1ba 100644 --- a/Mac/Tools/IDE/Wtext.py +++ b/Mac/Tools/IDE/Wtext.py @@ -486,7 +486,7 @@ class EditText(Wbase.SelectableWidget, _ScrollWidget): elif value == "--": delta = lineheight - viewheight else: # in thumb - cur = (32767 * viewoffset) / (destheight - viewheight) + cur = (32767L * viewoffset) / (destheight - viewheight) delta = (cur-value)*(destheight - viewheight)/32767 if abs(delta - viewoffset) <=2: # compensate for irritating rounding error -- cgit v0.12