1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:07:52 +08:00

Merge pull request #20519 from peppy/fix-leaderboard-first-place-fade

Fix fade being applied for too long when leaderboard scrolls to start
This commit is contained in:
Dan Balasescu 2022-10-07 20:42:18 +09:00 committed by GitHub
commit 073351498e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,7 +124,7 @@ namespace osu.Game.Screens.Play.HUD
float fadeBottom = scroll.Current + scroll.DrawHeight;
float fadeTop = scroll.Current + panel_height;
if (scroll.Current <= 0) fadeTop -= panel_height;
if (scroll.IsScrolledToStart()) fadeTop -= panel_height;
if (!scroll.IsScrolledToEnd()) fadeBottom -= panel_height;
// logic is mostly shared with Leaderboard, copied here for simplicity.