mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 21:07:18 +09: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 SelectionBlueprint placementBlueprint;
|
||||||
|
|
||||||
private readonly Box backgroundBox;
|
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)
|
public TimelineBlueprintContainer(HitObjectComposer composer)
|
||||||
: base(composer)
|
: base(composer)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user