On Thu, 2 Dec 2021 10:12:50 GMT, meghanEmbrace <d...@openjdk.java.net> wrote:

> With a touch-enabled device, the scrollbar disappears a short while after 
> it's used. During the layout, updateHbar() checks the hbar visibility and 
> resets the clip, causing the user to be scrolled fully to the left when 
> trying to access columns on the right. Using hbar.isVisible() is not feasible 
> as there are times when the scrollbar is necessary but not visible (such as 
> on touch-enabled devices where the scrollbar disappears when not in use, or 
> when hidden by CSS). Hence, it is more reliable to use the variable that 
> determines whether the hbar is necessary.

This seems like the correct fix, but I'll ask @aghaisas to review. What testing 
have you done to ensure that there are no regressions or unintended side 
effects of this change? Can you provide an automated test?

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

PR: https://git.openjdk.java.net/jfx/pull/688

Reply via email to