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.
This commit is contained in:
Oliver Brakmann
2016-09-01 18:01:55 +02:00
parent 501252af19
commit a8dc8454cb

View File

@@ -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);