1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 18:42:56 +08:00

Fix coordinates being in wrong space.

This commit is contained in:
Dean Herbert 2016-11-24 16:17:40 +09:00
parent 9938084343
commit c48acd4c3d

View File

@ -38,7 +38,7 @@ namespace osu.Game.Graphics.Containers
protected override void Update()
{
base.Update();
content.Position = (input.CurrentState.Mouse.Position - DrawSize / 2) * ParallaxAmount;
content.Position = (ToLocalSpace(input.CurrentState.Mouse.NativeState.Position) - DrawSize / 2) * ParallaxAmount;
content.Scale = new Vector2(1 + ParallaxAmount);
}
}