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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user