From 881e8f705a27939fd03ed3114534f3aab7122063 Mon Sep 17 00:00:00 2001 From: Tyler Whitney Date: Mon, 15 Apr 2013 03:08:22 -0300 Subject: [PATCH] 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. --- OpenRA.Game/Widgets/ViewportScrollControllerWidget.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/OpenRA.Game/Widgets/ViewportScrollControllerWidget.cs b/OpenRA.Game/Widgets/ViewportScrollControllerWidget.cs index a41256c570..86fa5a39b0 100755 --- a/OpenRA.Game/Widgets/ViewportScrollControllerWidget.cs +++ b/OpenRA.Game/Widgets/ViewportScrollControllerWidget.cs @@ -96,10 +96,8 @@ namespace OpenRA.Widgets if (Game.Settings.Game.ViewportEdgeScroll && Game.HasInputFocus) { Edge = CheckForDirections(); - Scroll(); } - - + Scroll(); } ScrollDirection CheckForDirections()