1
0
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:
Derrick Timmermans 2021-07-20 22:25:17 +02:00
parent 8b09ddbcd6
commit bfec87b082
No known key found for this signature in database
GPG Key ID: 8681B60806EF4A17

View File

@ -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)