RFR: 8186904: TableColumnHeader: resize cursor lost on right click

Ajit Ghaisas aghaisas at openjdk.java.net
Mon May 17 12:45:41 UTC 2021


On Wed, 28 Apr 2021 20:26:35 GMT, Marius Hanl <github.com+66004280+Maran23 at openjdk.org> wrote:

> This PR is fixing a bug, when a right click on a table column is performed. 
> By doing that, the table columns will lose the resize cursor thus they can not be resized anymore.
> 
> The reason for that is that the **columnDragLock** will not reset (to false).
> This flag is set to true, when a mouse press is detected (on a table column) and to false, when a mouse release is detected. Unfortunately, this flag is not reset on a right click, because a check (**#isPopupTrigger()**) will guard against it.
> 
> With this PR, this flag will always reset to false inside the mouse released handler.

Marked as reviewed by aghaisas (Reviewer).

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

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


More information about the openjfx-dev mailing list