mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
fixed glitch when scrolling very long files -- jvr
This commit is contained in:
parent
ffbe68723a
commit
6c487c4d34
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue