mirror of
https://github.com/ppy/osu.git
synced 2026-06-03 15:54:44 +08:00
Merge pull request #33199 from pe1agio/iss32064
Fix inconsistent display of rotation in tooltip when dragging selection box rotation handles
This commit is contained in:
@@ -127,7 +127,9 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
private void applyRotation(bool shouldSnap)
|
||||
{
|
||||
float newRotation = shouldSnap ? snap(rawCumulativeRotation, snap_step) : MathF.Round(rawCumulativeRotation);
|
||||
newRotation = (newRotation - 180) % 360 + 180;
|
||||
newRotation = ((newRotation + 360 + 180) % 360) - 180;
|
||||
if (MathF.Abs(newRotation) == 180)
|
||||
newRotation = 180;
|
||||
|
||||
cumulativeRotation.Value = newRotation;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user