1
0
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:
smoogipoo 2020-04-24 12:27:56 +09:00
parent ce602f84be
commit ca692f30e6

View File

@ -33,19 +33,13 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.HitCircles
{ {
if (e.Button == MouseButton.Left) if (e.Button == MouseButton.Left)
{ {
BeginPlacement(); EndPlacement(true);
return true; return true;
} }
return base.OnMouseDown(e); 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); public override void UpdatePosition(Vector2 screenSpacePosition) => HitObject.Position = ToLocalSpace(screenSpacePosition);
} }
} }