On Mon, 28 Apr 2025 17:24:31 GMT, Jose Pereda <jper...@openjdk.org> wrote:

> This was changed based on @beldenfox suggestion. I'll change it back.

If the mouse pressed event triggers a context menu you might never see the 
mouse released event. So you have to consider what it means if column drag lock 
gets set and then never cleared.

The failing test strikes me as odd, it is explicitly testing a bit of internal 
state to verify that a right-click drag operation will work. Users don't expect 
this to work and overloading right-click makes life complicated so right-click 
drags are generally disabled even on Windows. I understand that this test case 
was added because the table header was getting into a persistent bad state but 
unless I'm missing something (and I certainly might be) the bug should have 
been resolved by turning right-click drag into a no-op. (It doesn't help that 
the test uses the MouseEventFirer which sets the isPopupTrigger flag on both 
pressed and release which doesn't match the behavior of any platform.)

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

PR Comment: https://git.openjdk.org/jfx/pull/1754#issuecomment-2836384114

Reply via email to