mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 23:53:51 +09:00
Pass on mouseDown input to timeline if no selection modification is made with that input
This commit is contained in:
@ -97,6 +97,19 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
|
|
||||||
protected override Container<SelectionBlueprint<HitObject>> CreateSelectionBlueprintContainer() => new TimelineSelectionBlueprintContainer { RelativeSizeAxes = Axes.Both };
|
protected override Container<SelectionBlueprint<HitObject>> CreateSelectionBlueprintContainer() => new TimelineSelectionBlueprintContainer { RelativeSizeAxes = Axes.Both };
|
||||||
|
|
||||||
|
protected override bool OnMouseDown(MouseDownEvent e)
|
||||||
|
{
|
||||||
|
int selectionCount = SelectedItems.Count;
|
||||||
|
|
||||||
|
// We let BlueprintContainer attempt a HitObject selection
|
||||||
|
// If it fails, we'll pass it this input back to the timeline so it can be dragged
|
||||||
|
// We know it failed if the selection count is unchanged after the selection attempt
|
||||||
|
if (base.OnMouseDown(e) && selectionCount != SelectedItems.Count)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
protected override bool OnDragStart(DragStartEvent e)
|
protected override bool OnDragStart(DragStartEvent e)
|
||||||
{
|
{
|
||||||
if (!shouldHandleInputAt(e.ScreenSpaceMouseDownPosition))
|
if (!shouldHandleInputAt(e.ScreenSpaceMouseDownPosition))
|
||||||
|
Reference in New Issue
Block a user