RFR: 8323511 Scrollbar Click jumps inconsistent amount of pixels [v2]
eduardsdv
duke at openjdk.org
Tue Mar 19 13:39:29 UTC 2024
On Tue, 19 Mar 2024 12:02:14 GMT, Marius Hanl <mhanl at openjdk.org> wrote:
> But is it possible to scroll to an index that is negative?
Yes, both the negative value (``-1``) and the positive value, which is greater than the items count (to be precise ``last item index + 1``), are possible and indicate the direction in which the scrolling takes place.
The ``last item index + 1`` is already handled correctly. We only need to fix the handling of ``-1`` index.
Can you explain your second question in more detail?
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1326#discussion_r1530382582
More information about the openjfx-dev
mailing list