mirror of
https://github.com/ppy/osu
synced 2024-12-27 01:12:45 +00:00
Fix drag/selection events not propagating correctly to TimelineBlueprintContainer when before time zero
This commit is contained in:
parent
8ff13845d1
commit
35dd1c68aa
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user