From dde3a68c8f7f1d5eb471dee9a8883ec5b4e53e93 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 14 Nov 2016 16:40:13 +0900 Subject: [PATCH] Account for anchor when dragging MusicController (fixes VisualTest). --- osu.Game/Overlays/MusicController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osu.Game/Overlays/MusicController.cs b/osu.Game/Overlays/MusicController.cs index 5f7ffe6243..2ae9b74d8f 100644 --- a/osu.Game/Overlays/MusicController.cs +++ b/osu.Game/Overlays/MusicController.cs @@ -179,7 +179,9 @@ namespace osu.Game.Overlays protected override bool OnDrag(InputState state) { Vector2 change = (state.Mouse.Position - state.Mouse.PositionMouseDown.Value); - change.X = -change.X; + + if ((Anchor & Anchor.x2) > 0) + change.X = -change.X; change *= (float)Math.Pow(change.Length, 0.7f) / change.Length;