Fix drag/selection events not propagating correctly to TimelineBlueprintContainer when before time zero

This commit is contained in:
Dean Herbert 2021-04-06 14:27:45 +09:00
parent 8ff13845d1
commit 35dd1c68aa

View File

@ -36,6 +36,13 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
private SelectionBlueprint placementBlueprint;
private readonly Box backgroundBox;
// we only care about checking vertical validity.
// this allows selecting and dragging selections before time=0.
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos)
{
float localY = ToLocalSpace(screenSpacePos).Y;
return DrawRectangle.Top <= localY && DrawRectangle.Bottom >= localY;
}
public TimelineBlueprintContainer(HitObjectComposer composer)
: base(composer)