RFR: 8315655: [macos] Right click and dragging over a component with a popup menu will open the popup [v4]

Alisen Chung achung at openjdk.org
Fri Jun 7 21:10:13 UTC 2024


On Fri, 7 Jun 2024 21:03:58 GMT, Alisen Chung <achung at openjdk.org> wrote:

>> Although there's one more issue it seems where in native, after popup is shown when right mouse button (or CTRL+left mouse button) is pressed, if you release the mouse the popup vanishes which I noticed in Notes, Mail but it does not happen in JDK and popup remains open...but it seems not related to this...did you notice?
>
> Hmm, not sure why. I doubt it's related to this since both MOUSE_PRESSED and MOUSE_RELEASED are still popuptriggers before and after the fix. I can make a new issue for this to match native behavior.

I've tested that interaction before and after the fix and it's the same behavior. The initial MOUSE_PRESSED will open a popup, then the subsequent MOUSE_RELEASED will do nothing. When the popup is already open, the MOUSE_PRESSED will close the popup, but the MOUSE_RELEASED will do nothing. So it's unrelated to this fix but it might be something to do with MOUSE_RELEASED or maybe MOUSE_DRAGGED/MOUSE_CLICKED cancelling the popup behavior. I can look to make a fix separate from this issue.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/19569#discussion_r1631694648


More information about the client-libs-dev mailing list