1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

Fix drag after placement moving last placed point sometimes

More specifically, if the left mouse button was just pressed without a
drag, `OnDragEnd()` wouldn't fire, and the next drag would start moving
the last placed control point around regardless of where the mouse was.
This commit is contained in:
Bartłomiej Dach 2021-12-23 09:09:14 +01:00
parent 29b42402a3
commit cbda637d66
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -170,7 +170,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
placementControlPoint.Position = e.MousePosition - HitObject.Position;
}
protected override void OnDragEnd(DragEndEvent e)
protected override void OnMouseUp(MouseUpEvent e)
{
if (placementControlPoint != null)
{