mirror of
https://github.com/osukey/osukey.git
synced 2025-05-06 14:17:27 +09:00
Move bounds check from moveSelection to HandleMovement
This commit is contained in:
parent
562a4cefdb
commit
2c6f92d12f
@ -35,8 +35,12 @@ namespace osu.Game.Rulesets.Osu.Edit
|
|||||||
referenceOrigin = null;
|
referenceOrigin = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool HandleMovement(MoveSelectionEvent moveEvent) =>
|
public override bool HandleMovement(MoveSelectionEvent moveEvent)
|
||||||
moveSelection(moveEvent.InstantDelta);
|
{
|
||||||
|
bool result = moveSelection(moveEvent.InstantDelta);
|
||||||
|
moveSelectionInBounds();
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// During a transform, the initial origin is stored so it can be used throughout the operation.
|
/// 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)
|
foreach (var h in hitObjects)
|
||||||
h.Position += delta;
|
h.Position += delta;
|
||||||
|
|
||||||
moveSelectionInBounds();
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user