Fix/Disable Edge scroll while standard (middle mouse) scroll
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user