From a6190ebfcf42569569c7a5250cf5a770026c1cec Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 18 Aug 2018 09:45:07 +0100 Subject: [PATCH] Revert "Re-active Edge-Scrolling for inverted Mouse-Scrolling" This reverts commit c4867d4030db1edc6400e6f3f62ca64905607a3c. --- 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 bdf4c49cfad5..6fa70b7b2efc 100644 --- a/OpenRA.Mods.Common/Widgets/ViewportControllerWidget.cs +++ b/OpenRA.Mods.Common/Widgets/ViewportControllerWidget.cs @@ -368,7 +368,7 @@ public override bool HandleMouseInput(MouseInput mi) else if (mi.Event == MouseInputEvent.Move && (isStandardScrolling || (standardScrollStart.HasValue && ((standardScrollStart.Value - mi.Location).Length > Game.Settings.Game.MouseScrollDeadzone)))) { - isStandardScrolling = scrollType == MouseScrollType.Standard; + isStandardScrolling = true; var d = scrollType == MouseScrollType.Inverted ? -1 : 1; worldRenderer.Viewport.Scroll((Viewport.LastMousePos - mi.Location) * d, false); return true;