1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-06 22:04:24 +08:00

Use scale instead of rotation for overlay scroll button

This commit is contained in:
Salman Ahmed
2024-07-08 08:31:33 +03:00
Unverified
parent 9375f79879
commit 5223e0aeae
+1 -1
View File
@@ -163,7 +163,7 @@ namespace osu.Game.Overlays
LastScrollTarget.BindValueChanged(target =>
{
spriteIcon.RotateTo(target.NewValue != null ? 180 : 0, fade_duration, Easing.OutQuint);
spriteIcon.ScaleTo(target.NewValue != null ? new Vector2(1f, -1f) : Vector2.One, fade_duration, Easing.OutQuint);
TooltipText = target.NewValue != null ? CommonStrings.ButtonsBackToPrevious : CommonStrings.ButtonsBackToTop;
}, true);
}