mirror of https://github.com/ppy/osu
Do full placement on mouse down
This commit is contained in:
parent
ce602f84be
commit
ca692f30e6
|
@ -33,19 +33,13 @@ protected override bool OnMouseDown(MouseDownEvent e)
|
|||
{
|
||||
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