From dc46dd1f26fc47537ad95f71313d5560662a97b3 Mon Sep 17 00:00:00 2001 From: Kanar Date: Fri, 29 Dec 2017 18:58:06 +0100 Subject: [PATCH] Re-active Edge-Scrolling for inverted Mouse-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 6fa70b7b2e..bdf4c49cfa 100644 --- a/OpenRA.Mods.Common/Widgets/ViewportControllerWidget.cs +++ b/OpenRA.Mods.Common/Widgets/ViewportControllerWidget.cs @@ -368,7 +368,7 @@ namespace OpenRA.Mods.Common.Widgets else if (mi.Event == MouseInputEvent.Move && (isStandardScrolling || (standardScrollStart.HasValue && ((standardScrollStart.Value - mi.Location).Length > Game.Settings.Game.MouseScrollDeadzone)))) { - isStandardScrolling = true; + isStandardScrolling = scrollType == MouseScrollType.Standard; var d = scrollType == MouseScrollType.Inverted ? -1 : 1; worldRenderer.Viewport.Scroll((Viewport.LastMousePos - mi.Location) * d, false); return true;