mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09: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 Bindable<HitObject> placement;
|
||||||
private SelectionBlueprint<HitObject> placementBlueprint;
|
private SelectionBlueprint<HitObject> placementBlueprint;
|
||||||
|
|
||||||
// We want children to be able to be clicked and dragged, regardless of this drawable's size
|
// We want children within the timeline to be interactable
|
||||||
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => true;
|
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => timeline.ScreenSpaceDrawQuad.Contains(screenSpacePos);
|
||||||
|
|
||||||
public TimelineBlueprintContainer(HitObjectComposer composer)
|
public TimelineBlueprintContainer(HitObjectComposer composer)
|
||||||
: base(composer)
|
: base(composer)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user