mirror of
https://github.com/ppy/osu.git
synced 2026-05-26 06:09:53 +08:00
Move bounds check from moveSelection to HandleMovement
This commit is contained in:
@@ -35,8 +35,12 @@ namespace osu.Game.Rulesets.Osu.Edit
|
||||
referenceOrigin = null;
|
||||
}
|
||||
|
||||
public override bool HandleMovement(MoveSelectionEvent moveEvent) =>
|
||||
moveSelection(moveEvent.InstantDelta);
|
||||
public override bool HandleMovement(MoveSelectionEvent moveEvent)
|
||||
{
|
||||
bool result = moveSelection(moveEvent.InstantDelta);
|
||||
moveSelectionInBounds();
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// During a transform, the initial origin is stored so it can be used throughout the operation.
|
||||
@@ -234,8 +238,6 @@ namespace osu.Game.Rulesets.Osu.Edit
|
||||
foreach (var h in hitObjects)
|
||||
h.Position += delta;
|
||||
|
||||
moveSelectionInBounds();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user