Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6c487c4

Browse files
author
Just van Rossum
committed
fixed glitch when scrolling very long files -- jvr
1 parent ffbe687 commit 6c487c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Mac/Tools/IDE/Wtext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ def vscroll(self, value):
486486
elif value == "--":
487487
delta = lineheight - viewheight
488488
else: # in thumb
489-
cur = (32767 * viewoffset) / (destheight - viewheight)
489+
cur = (32767L * viewoffset) / (destheight - viewheight)
490490
delta = (cur-value)*(destheight - viewheight)/32767
491491
if abs(delta - viewoffset) <=2:
492492
# compensate for irritating rounding error

0 commit comments

Comments
 (0)