Convert positions to local HOC coordinate space

This commit is contained in:
smoogipoo
2020-04-28 14:00:14 +09:00
parent 799b5179ed
commit 7342e00151

View File

@ -46,9 +46,7 @@ namespace osu.Game.Rulesets.Mania.Edit
{ {
var hoc = Playfield.GetColumn(0).HitObjectContainer; var hoc = Playfield.GetColumn(0).HitObjectContainer;
position.Y -= ToLocalSpace(hoc.ScreenSpaceDrawQuad.TopLeft).Y; float targetPosition = hoc.ToLocalSpace(ToScreenSpace(position)).Y;
float targetPosition = position.Y;
if (drawableRuleset.ScrollingInfo.Direction.Value == ScrollingDirection.Down) if (drawableRuleset.ScrollingInfo.Direction.Value == ScrollingDirection.Down)
{ {