mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 23:53:51 +09:00
Fix fade being applied for too long when leaderboard scrolls to start
This commit is contained in:
@ -130,7 +130,7 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
float fadeBottom = scroll.Current + scroll.DrawHeight;
|
float fadeBottom = scroll.Current + scroll.DrawHeight;
|
||||||
float fadeTop = scroll.Current + panel_height;
|
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;
|
if (!scroll.IsScrolledToEnd()) fadeBottom -= panel_height;
|
||||||
|
|
||||||
// logic is mostly shared with Leaderboard, copied here for simplicity.
|
// logic is mostly shared with Leaderboard, copied here for simplicity.
|
||||||
|
Reference in New Issue
Block a user