ppy / osu

rhythm is just a *click* away!
https://osu.ppy.sh
MIT License
14.64k stars 2.16k forks source link

Ensure carousel panel depth is consistent based on vertical position #28615

Closed peppy closed 3 days ago

peppy commented 3 days ago

I thought this was already being handled, but it turns out that changing sort mode (and potentially other operations) could break the depth of display of panels due to pooling and what not.

This ensures consistency and also employs @bdach's suggestion of reversing the depth above and below the current selection for a better visual effect.