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

Fix undo being broken when ctrl-click and dragging new point

This commit is contained in:
Bartłomiej Dach 2023-11-23 14:00:42 +09:00
parent e8d3d26d16
commit 3da8a0cbed
No known key found for this signature in database

View File

@ -205,18 +205,13 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
ControlPointVisualiser?.DragInProgress(e);
}
protected override void OnDragEnd(DragEndEvent e)
{
base.OnDragEnd(e);
if (placementControlPoint != null)
ControlPointVisualiser?.DragEnded();
}
protected override void OnMouseUp(MouseUpEvent e)
{
if (placementControlPoint != null)
{
if (IsDragged)
ControlPointVisualiser?.DragEnded();
placementControlPoint = null;
changeHandler?.EndChange();
}