Fix slider creation regressing with path selection changes

This commit is contained in:
Dean Herbert
2019-11-03 19:59:37 +09:00
parent 1155aacd90
commit bcf8a6d514
4 changed files with 21 additions and 10 deletions

View File

@ -128,19 +128,24 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components
protected override bool OnMouseDown(MouseDownEvent e)
{
isClicked = true;
return true;
return false;
}
protected override bool OnMouseUp(MouseUpEvent e)
{
isClicked = false;
return true;
return false;
}
protected override bool OnClick(ClickEvent e)
{
RequestSelection?.Invoke(Index);
return true;
if (RequestSelection != null)
{
RequestSelection.Invoke(Index);
return true;
}
return false;
}
protected override bool OnDragStart(DragStartEvent e) => true;