1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 00:02:54 +08:00

make hover lost transition instant (similar to hover transition)

This commit is contained in:
jorolf 2018-04-16 18:52:09 +02:00
parent 2a18b4c3f8
commit 046412f962

View File

@ -136,7 +136,7 @@ namespace osu.Game.Overlays.Profile.Header
private void onOuterHoverLost()
{
badgeFlowContainer.MoveToX(-badge_size.X * visibleBadge, 500, Easing.InOutQuad);
badgeFlowContainer.X = -DrawableBadge.DRAWABLE_BADGE_SIZE.X * visibleBadge;
badgeFlowContainer.Direction = FillDirection.Horizontal;
outerBadgeContainer.AutoSizeAxes = Axes.Y;
outerBadgeContainer.Width = DrawableBadge.DRAWABLE_BADGE_SIZE.X + outer_padding.TotalHorizontal;