This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients Jason990420, steven.daprano
Date 2022-02-20.07:33:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1645342422.57.0.233034903356.issue46803@roundup.psfhosted.org>
In-reply-to
Content
Replicated on Linux, Python 3.10.

It looks like mousewheel scrolling jumps by the wrong amount as it pages down (or up), and consequently some lines never appear in the view area.

I ran a slightly modified version of the code that had 16 entries instead of just seven. By default, just three entries are visible at a time. If we number the lines 1-16, and start with lines 1-3 visible, then we get:

* Initial view: lines 1, 2, 3 visible, 4-16 below the view area.
* Scrollwheel down.
* Lines 6-8 visible, 1-5 above the view area, 9-16 below.
* Scrollwheel down.
* Lines 11-13 visible, 1-10 above the view area, 14-16 below.
* Scrollwheel down.
* Lines 14-16 visible, 1-13 above the view area.

So the scrollwheel scrolls down by: 5 lines, 5 lines, 3 lines.

Going back the otherway, the scrollwheel scrolls up by 5, 5, 3.

Why five lines? My guess is that it might have something to do with 16//3 = 5.

I don't know if this is something we can fix, or we're stuck with whatever tk/tcl does.

I don't know if this is related, or should be a separate issue, but I see that the keyboard PageUp and PageDown keys don't scroll up or down by a page, but by a single line -- and they don't correctly highlight the selected line either.

Paging should scroll up or down by N-1 lines, where N is the number of visible lines in the view area.

Likewise for clicking in the scrollbar's PageUp/PageDown region, which also scrolls by a single line.
History
Date User Action Args
2022-02-20 07:33:42steven.dapranosetrecipients: + steven.daprano, Jason990420
2022-02-20 07:33:42steven.dapranosetmessageid: <1645342422.57.0.233034903356.issue46803@roundup.psfhosted.org>
2022-02-20 07:33:42steven.dapranolinkissue46803 messages
2022-02-20 07:33:42steven.dapranocreate