Tested on macOS 12.2 on Trunk version 2023.1.0a1.1
The scene window gets stuck in orbit after opening a context menu from the Hierarchy that overlaps with the Scene window. See attached video for reference.
While in this state, it's not possible to click anything, and moving around the cursor over the Scene window, even without holding RMB, will still be in orbit mode.
Exact steps to reproduce:
- Create a new project or open an existing one
- Left-click on the Scene View to deselect whatever was selected before
- Right-click any GameObject in the Hierarchy to open a context menu
- Left-click on the Scene View
Reproducible with: 2022.2.0a11
Not reproducible with: 2022.2.0a10
Callstack:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.SceneViewMotion.HandleMouseUp (UnityEditor.SceneView view, System.Int32 id, System.Int32 button, System.Int32 clickCount) (at /Users/billrey/unity-git/unity/Editor/Mono/SceneView/SceneViewMotion.cs:267)
UnityEditor.SceneViewMotion.TemporaryFPS (UnityEditor.ShortcutManagement.ShortcutArguments args) (at /Users/billrey/unity-git/unity/Editor/Mono/SceneView/SceneViewMotion.cs:103)
UnityEditor.ShortcutManagement.Trigger.ResetActiveClutches () (at /Users/billrey/unity-git/unity/Modules/ShortcutManagerEditor/Trigger.cs:148)
UnityEditor.ShortcutManagement.ShortcutIntegration.OnFocusChanged (System.Boolean isFocused) (at /Users/billrey/unity-git/unity/Modules/ShortcutManagerEditor/ShortcutController.cs:144)
UnityEditor.EditorApplication.Internal_FocusChanged (System.Boolean isFocused) (at /Users/billrey/unity-git/unity/Editor/Mono/EditorApplication.cs:476)