From a8dc8454cb4a82e6b0e73b104d38ebfbda891a40 Mon Sep 17 00:00:00 2001 From: Oliver Brakmann Date: Thu, 1 Sep 2016 18:01:55 +0200 Subject: [PATCH] Fix ignoring deadzone with joystick scrolling This re-introduces a bug where releasing the RMB button causes an order to be generated for the selected units if the user didn't move their mouse just prior. --- 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 7eb3aa5e59..73e8778a8a 100644 --- a/OpenRA.Mods.Common/Widgets/ViewportControllerWidget.cs +++ b/OpenRA.Mods.Common/Widgets/ViewportControllerWidget.cs @@ -315,7 +315,7 @@ namespace OpenRA.Mods.Common.Widgets if (mi.Event == MouseInputEvent.Up) { - var wasJoystickScrolling = joystickScrollStart.HasValue && joystickScrollEnd.HasValue; + var wasJoystickScrolling = IsJoystickScrolling; joystickScrollStart = joystickScrollEnd = null; YieldMouseFocus(mi);