1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 20:22:55 +08:00

Don't lock scroll position of SectionsContainer header elements on negative scroll

Feels better in all cases.
This commit is contained in:
Dean Herbert 2017-07-13 14:24:41 +09:00
parent 3c7cd97d42
commit b79e309c2f

View File

@ -162,7 +162,8 @@ namespace osu.Game.Graphics.Containers
updateSectionsMargin();
}
float currentScroll = Math.Max(0, scrollContainer.Current);
float currentScroll = scrollContainer.Current;
if (currentScroll != lastKnownScroll)
{
lastKnownScroll = currentScroll;