mirror of
https://github.com/ppy/osu
synced 2025-01-10 16:19:47 +00:00
Fix selection screen point being wrong since recent refactors
This commit is contained in:
parent
de73ac7cec
commit
3c84b0d8c6
@ -78,10 +78,10 @@ namespace osu.Game.Skinning.Editor
|
||||
|
||||
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => drawable.ReceivePositionalInputAt(screenSpacePos);
|
||||
|
||||
public override Vector2 ScreenSpaceSelectionPoint => drawable.ToScreenSpace(Vector2.Zero);
|
||||
public override Vector2 ScreenSpaceSelectionPoint => drawable.Parent.ToScreenSpace(drawable.DrawPosition);
|
||||
|
||||
public override Quad SelectionQuad => drawable.ScreenSpaceDrawQuad;
|
||||
|
||||
public override Vector2 GetInstantDelta(Vector2 screenSpacePosition) => Component.Parent.ToLocalSpace(screenSpacePosition) - drawable.Position;
|
||||
public override Vector2 GetInstantDelta(Vector2 screenSpacePosition) => Component.Parent.ToLocalSpace(screenSpacePosition) - drawable.DrawPosition;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user