Skip to content

Commit 7a4f055

Browse files
See https://bugs.launchpad.net/or/+bug/2111749: When the OR main form does not have the focus, hovering above the main OR form makes the mouse cursor disappear. To get the focus again on that form, you have to click the mouse on that form without knowing where. Risking clicking on some control by accident.
1 parent ade0195 commit 7a4f055

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/RunActivity/Viewer3D/Viewer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1508,7 +1508,7 @@ void HandleUserInput(ElapsedTime elapsedTime)
15081508
if (UserInput.IsMouseMoved || RenderProcess.IsMouseVisible && UserInput.IsMouseWheelChanged)
15091509
MouseVisibleTillRealTime = RealTime + 1;
15101510

1511-
RenderProcess.IsMouseVisible = ForceMouseVisible || RealTime < MouseVisibleTillRealTime;
1511+
RenderProcess.IsMouseVisible = ForceMouseVisible || RealTime < MouseVisibleTillRealTime || !Game.IsActive;
15121512

15131513
UserInput.Handled();
15141514
}

0 commit comments

Comments
 (0)