1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 09:42:57 +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
parent 9375f79879
commit 5223e0aeae

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);
}