mirror of
https://github.com/ppy/osu.git
synced 2025-03-01 03:12:56 +08:00
Remove unused override
This commit is contained in:
parent
a7a680b486
commit
f93291e25b
@ -45,25 +45,5 @@ namespace osu.Game.Rulesets.Mania.Edit.Blueprints
|
|||||||
DrawableObject.AlwaysAlive = false;
|
DrawableObject.AlwaysAlive = false;
|
||||||
base.Hide();
|
base.Hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Vector2 GetInstantDelta(Vector2 screenSpacePosition)
|
|
||||||
{
|
|
||||||
var baseDelta = base.GetInstantDelta(screenSpacePosition);
|
|
||||||
|
|
||||||
if (scrollingInfo.Direction.Value == ScrollingDirection.Down)
|
|
||||||
{
|
|
||||||
// The parent of DrawableObject is the scrolling hitobject container (SHOC).
|
|
||||||
// In the coordinate-space of the SHOC, the screen-space position at the hit target is equal to the height of the SHOC,
|
|
||||||
// but this is not what we want as it means a slight movement downwards results in a delta greater than the height of the SHOC.
|
|
||||||
// To get around this issue, the height of the SHOC is subtracted from the delta.
|
|
||||||
//
|
|
||||||
// Ideally this should be a _negative_ value in the case described above, however this code gives a _positive_ delta.
|
|
||||||
// This is intentional as the delta is added to the hitobject's position (see: ManiaSelectionHandler) and a negative delta would move them towards the top of the screen instead,
|
|
||||||
// which would cause the delta to get increasingly larger as additional movements are performed.
|
|
||||||
return new Vector2(baseDelta.X, baseDelta.Y - DrawableObject.Parent.DrawHeight);
|
|
||||||
}
|
|
||||||
|
|
||||||
return baseDelta;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user