mirror of
https://github.com/ppy/osu.git
synced 2025-03-15 23:17:18 +08:00
Account for panel height when removing as off-screen
This commit is contained in:
parent
ee0efa0b4c
commit
bff3856c83
@ -602,7 +602,7 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
// panel loaded as drawable but not required by visible range.
|
||||
// remove but only if too far off-screen
|
||||
if (panel.Y < visibleUpperBound - distance_offscreen_before_unload || panel.Y > visibleBottomBound + distance_offscreen_before_unload)
|
||||
if (panel.Y + panel.DrawHeight < visibleUpperBound - distance_offscreen_before_unload || panel.Y > visibleBottomBound + distance_offscreen_before_unload)
|
||||
{
|
||||
// may want a fade effect here (could be seen if a huge change happens, like a set with 20 difficulties becomes selected).
|
||||
panel.ClearTransforms();
|
||||
|
Loading…
x
Reference in New Issue
Block a user