Fix/Disable Edge scroll while standard (middle mouse) scroll

This commit is contained in:
rob-v
2017-04-10 19:56:53 +02:00
parent c69a85a328
commit e87a96f2b8

View File

@@ -141,7 +141,7 @@ namespace OpenRA.Mods.Common.Widgets
var scroll = (joystickScrollEnd.Value - joystickScrollStart.Value).ToFloat2() * rate; var scroll = (joystickScrollEnd.Value - joystickScrollStart.Value).ToFloat2() * rate;
worldRenderer.Viewport.Scroll(scroll, false); worldRenderer.Viewport.Scroll(scroll, false);
} }
else else if (!isStandardScrolling)
{ {
edgeDirections = ScrollDirection.None; edgeDirections = ScrollDirection.None;
if (Game.Settings.Game.ViewportEdgeScroll && Game.HasInputFocus) if (Game.Settings.Game.ViewportEdgeScroll && Game.HasInputFocus)