From d6a6ed28c8da0792d12b089acd74436234626931 Mon Sep 17 00:00:00 2001 From: Oliver Brakmann Date: Thu, 25 Aug 2016 13:25:30 +0200 Subject: [PATCH] Fix issuing orders when releasing RMB after joystick-scrolling --- OpenRA.Mods.Common/Widgets/ViewportControllerWidget.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Widgets/ViewportControllerWidget.cs b/OpenRA.Mods.Common/Widgets/ViewportControllerWidget.cs index 1b5fd7a7a0..6fd0057d0a 100644 --- a/OpenRA.Mods.Common/Widgets/ViewportControllerWidget.cs +++ b/OpenRA.Mods.Common/Widgets/ViewportControllerWidget.cs @@ -305,7 +305,7 @@ namespace OpenRA.Mods.Common.Widgets if (mi.Event == MouseInputEvent.Up) { - var wasJoystickScrolling = IsJoystickScrolling; + var wasJoystickScrolling = joystickScrollStart.HasValue && joystickScrollEnd.HasValue; joystickScrollStart = joystickScrollEnd = null; YieldMouseFocus(mi);