Fix Scroll bug when chat is opened
This commit is contained in:
committed by
Gustas
parent
97c61e0068
commit
106c18480f
@@ -195,6 +195,9 @@ namespace OpenRA.Mods.Common.Widgets
|
|||||||
if (Game.Settings.Game.ViewportEdgeScroll && Game.Renderer.WindowHasInputFocus)
|
if (Game.Settings.Game.ViewportEdgeScroll && Game.Renderer.WindowHasInputFocus)
|
||||||
edgeDirections = CheckForDirections();
|
edgeDirections = CheckForDirections();
|
||||||
|
|
||||||
|
if (Ui.KeyboardFocusWidget != null)
|
||||||
|
keyboardDirections = ScrollDirection.None;
|
||||||
|
|
||||||
if (keyboardDirections != ScrollDirection.None || edgeDirections != ScrollDirection.None)
|
if (keyboardDirections != ScrollDirection.None || edgeDirections != ScrollDirection.None)
|
||||||
{
|
{
|
||||||
var scroll = float2.Zero;
|
var scroll = float2.Zero;
|
||||||
|
|||||||
Reference in New Issue
Block a user