Skip to content

Commit

Permalink
Fix Scroll bug when chat is opened
Browse files Browse the repository at this point in the history
  • Loading branch information
RaushanSakhibzadin committed Apr 30, 2024
1 parent 10d7436 commit 95f4f0d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions OpenRA.Mods.Common/Widgets/ViewportControllerWidget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ public override void Draw()
if (Game.Settings.Game.ViewportEdgeScroll && Game.Renderer.WindowHasInputFocus)
edgeDirections = CheckForDirections();

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

if (keyboardDirections != ScrollDirection.None || edgeDirections != ScrollDirection.None)
{
var scroll = float2.Zero;
Expand Down

0 comments on commit 95f4f0d

Please sign in to comment.