mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:27:29 +08:00
Do full placement on mouse down
This commit is contained in:
parent
ce602f84be
commit
ca692f30e6
@ -33,19 +33,13 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.HitCircles
|
||||
{
|
||||
if (e.Button == MouseButton.Left)
|
||||
{
|
||||
BeginPlacement();
|
||||
EndPlacement(true);
|
||||
return true;
|
||||
}
|
||||
|
||||
return base.OnMouseDown(e);
|
||||
}
|
||||
|
||||
protected override void OnMouseUp(MouseUpEvent e)
|
||||
{
|
||||
if (e.Button == MouseButton.Left)
|
||||
EndPlacement(true);
|
||||
}
|
||||
|
||||
public override void UpdatePosition(Vector2 screenSpacePosition) => HitObject.Position = ToLocalSpace(screenSpacePosition);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user