mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 16:02:58 +08:00
Let TimelineBlueprintContainer only accept positional input within timeline quad
This commit is contained in:
parent
8b09ddbcd6
commit
bfec87b082
@ -35,8 +35,8 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
||||
private Bindable<HitObject> placement;
|
||||
private SelectionBlueprint<HitObject> placementBlueprint;
|
||||
|
||||
// We want children to be able to be clicked and dragged, regardless of this drawable's size
|
||||
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => true;
|
||||
// We want children within the timeline to be interactable
|
||||
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => timeline.ScreenSpaceDrawQuad.Contains(screenSpacePos);
|
||||
|
||||
public TimelineBlueprintContainer(HitObjectComposer composer)
|
||||
: base(composer)
|
||||
|
Loading…
Reference in New Issue
Block a user