Update ViewportScrollControllerWidget.cs

Moved Scroll() out of the if statement checking to see if edge scrolling was enabled thereby fixing bug introduced that stops keyboard from working if edge scrolling is not enabled.
This commit is contained in:
Tyler Whitney
2013-04-15 03:08:22 -03:00
parent ff282eafa2
commit 881e8f705a

View File

@@ -96,10 +96,8 @@ namespace OpenRA.Widgets
if (Game.Settings.Game.ViewportEdgeScroll && Game.HasInputFocus)
{
Edge = CheckForDirections();
Scroll();
}
Scroll();
}
ScrollDirection CheckForDirections()