Fix selections including head not correctly dragging if not started from head

This commit is contained in:
Bartłomiej Dach
2021-12-21 12:35:48 +01:00
parent adfadc13f7
commit e715bff535
2 changed files with 16 additions and 10 deletions

View File

@ -32,7 +32,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components
{
public Action<PathControlPointPiece, MouseButtonEvent> RequestSelection;
public Action DragStarted;
public Action<PathControlPoint> DragStarted;
public Action<DragEvent> DragInProgress;
public Action DragEnded;
@ -188,7 +188,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components
if (e.Button == MouseButton.Left)
{
DragStarted?.Invoke();
DragStarted?.Invoke(ControlPoint);
keepSelection = true;
return true;
}