How to reproduce:
- Open the attached “IN-144806_Cursor_Style_Bug” project
- Open the “SampleScene”
- Enter the Play mode
- Click and hold mouse button on blue area
- Release the button
Actual result: The cursor remains changed
Expected result: The cursor returns to the original state
Reproducible with: 6000.0.0f1, 6000.0.77f1, 6000.3.17f1, 6000.4.11f1, 6000.5.0b12, 6000.6.0a7
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Workaround: Add {{[VisualElement].panel.visualTree.SendEvent( new MouseOverEvent
{ target = [VisualElement]}
);}} after the style change to update the cursor immediately
Notes:
- The cursor changes only after leaving the VisualElement
- The cursor changes immediately when style is set to another Cursor instead of StyleKeyword.Null
- Reproducible in Player