Revert "Re-active Edge-Scrolling for inverted Mouse-Scrolling"

This reverts commit c4867d4030db1edc6400e6f3f62ca64905607a3c.
This commit is contained in:
Paul Chote
2018-08-18 09:45:07 +01:00
committed by reaperrr
parent 03adceb656
commit 9ec22e48a6

View File

@@ -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 = scrollType == MouseScrollType.Standard;
isStandardScrolling = true;
var d = scrollType == MouseScrollType.Inverted ? -1 : 1;
worldRenderer.Viewport.Scroll((Viewport.LastMousePos - mi.Location) * d, false);
return true;