Fix Scroll bug when chat is opened

This commit is contained in:
RaushanSakhibzadin
2024-04-22 19:47:52 +02:00
committed by Gustas
parent 97c61e0068
commit 106c18480f

View File

@@ -195,6 +195,9 @@ namespace OpenRA.Mods.Common.Widgets
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;