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 authored and PunkPun committed Apr 30, 2024
1 parent 97c61e0 commit 106c184
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 106c184

Please sign in to comment.