On Wed, 24 Jan 2024 21:03:39 GMT, Alexey Ivanov <[email protected]> wrote:

> The suggested fix adds one more repaint of the rectangle where the scroll 
> thumb is currently located. Or maybe not, and `getTrackBounds` returns the 
> new rectangle by the time it's called in `scrollByUnit`.

This seems like a possible cause.

> I wonder if the problem can be reproduced by programmatically moving the 
> thumb instead of dragging it with the mouse. Playing with the window size, 
> uiScale, and the max value of the scrollbar could be required…

Good idea. I agree, especially with the case of max value of scroll bar.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/17484#issuecomment-1908953767

Reply via email to