You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Windows, popup menus appear when releasing the right-click button. On MacOS, they appear when pressing the right-click button. FlatLAF correctly follows this behavior on each platform.
There's a usability problem on MacOS, though. If the user moves the cursor towards the intended menu item, and happens to release the mouse button while the cursor is now over another menu item, then the latter action will be executed instead of the intended one. I make this mistake myself quite often when working quickly (with an external mouse, not a trackpad). See the screen recording below:
Proposal: In a JMenuItem, ignore a right-button mouse-release event for action triggering purposes if it comes within a short duration of the corresponding mouse-press event (e.g. 250ms).
The text was updated successfully, but these errors were encountered:
On Windows, popup menus appear when releasing the right-click button. On MacOS, they appear when pressing the right-click button. FlatLAF correctly follows this behavior on each platform.
There's a usability problem on MacOS, though. If the user moves the cursor towards the intended menu item, and happens to release the mouse button while the cursor is now over another menu item, then the latter action will be executed instead of the intended one. I make this mistake myself quite often when working quickly (with an external mouse, not a trackpad). See the screen recording below:
https://youtube.com/shorts/RzlnnRMP8J8
Proposal: In a JMenuItem, ignore a right-button mouse-release event for action triggering purposes if it comes within a short duration of the corresponding mouse-press event (e.g. 250ms).
The text was updated successfully, but these errors were encountered: