Skip to content

Commit

Permalink
The player should still be able to scroll when the game is paused. Th…
Browse files Browse the repository at this point in the history
…at's a separate issue
  • Loading branch information
Raushan committed Apr 26, 2024
1 parent bf5aad5 commit 6b3b9e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenRA.Mods.Common/Widgets/ViewportControllerWidget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public override void Draw()
if (Game.Settings.Game.ViewportEdgeScroll && Game.Renderer.WindowHasInputFocus)
edgeDirections = CheckForDirections();

if (Ui.KeyboardFocusWidget != null || world.Paused)
if (Ui.KeyboardFocusWidget != null)
keyboardDirections = ScrollDirection.None;

if (keyboardDirections != ScrollDirection.None || edgeDirections != ScrollDirection.None)
Expand Down

0 comments on commit 6b3b9e3

Please sign in to comment.