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:
parent
9938084343
commit
c48acd4c3d
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user