mirror of
https://github.com/ppy/osu.git
synced 2026-05-27 05:09:58 +08:00
Fix leaderboard wedge transition looking bad when user is scrolled down
Closes https://github.com/ppy/osu/issues/33227.
This commit is contained in:
@@ -7,6 +7,7 @@ using System.Linq;
|
||||
using System.Threading;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Extensions.PolygonExtensions;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Shapes;
|
||||
@@ -310,7 +311,10 @@ namespace osu.Game.Screens.SelectV2
|
||||
.FadeOut(120, Easing.Out)
|
||||
.Expire();
|
||||
|
||||
delay += 20;
|
||||
// If the user is scrolled down in the list, start delaying only from the current visible range to
|
||||
// avoid the perceived transition from taking longer than expected.
|
||||
if (d.ScreenSpaceDrawQuad.Intersects(scoresScroll.ScreenSpaceDrawQuad))
|
||||
delay += 20;
|
||||
}
|
||||
|
||||
personalBestDisplay.MoveToX(-100, 300, Easing.OutQuint);
|
||||
|
||||
Reference in New Issue
Block a user