Unity Issue Tracker - Context Menu option is automatically selected when the menu is invoked and mouse is dragged while holding left mouse button
Closed
UUM-117427
Context Menu option is automatically selected when the menu is invoked and mouse is dragged while holding left mouse button
Unity: Contextual Menu
As Designed
6.3.X
6.2.X
6.0.X
This is expected for context menus. Similar behavior can be seen in the File Explorer on Windows, when changing view settings for example or with context menus on MacOS.
Reproduction steps:
1. Create and open a new project
2. Create a new GameObject in the Hierarchy
3. Add multiple Components to the GO until you need to scroll the Inspector
4. Press and hold the left mouse button on the three dots (hamburger menu) on one of the Components
5. Move it over the closest opened option
6. Release LMB
7. Observe the behaviour
Expected result: Nothing happens after LMB is released (only then I'd expect the Context Menu to appear)
Actual result: The hovered-over option is selected upon LMB release and the Context Menu closes
Reproduced on: Windows 11 Pro (24H2)
Not reproduced on: No other environment tested
Notes:
On the 5th step, if too little space is given for the Context Menu, the menu will open already under the cursor, making the issue more apparent and making you instantly hover over some option
This also affects other Context Menus in the Editor, except for the ones in the Scene view or the Toolbar
Prioritise and Follow this issue
Have a workaround or additional info about this issue?