Fixed a bug in scrolling.
This commit is contained in:
parent
5a8bca84df
commit
547983819d
2 changed files with 3 additions and 3 deletions
|
|
@ -316,7 +316,7 @@ class Summary:
|
|||
scroll_x, scroll_y = new_scroll_x, new_scroll_y = \
|
||||
self._view_widget.position
|
||||
if cursor_y < scroll_y:
|
||||
new_scroll_y = max(cursor_y - summary_height, 0)
|
||||
new_scroll_y = max(cursor_y - summary_height + 1, 0)
|
||||
if (scroll_y + summary_height - 1) < cursor_y:
|
||||
new_scroll_y = cursor_y
|
||||
self._view_widget.position = new_scroll_x, new_scroll_y
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue