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(); updateSectionsMargin();
} }
float currentScroll = Math.Max(0, scrollContainer.Current); float currentScroll = scrollContainer.Current;
if (currentScroll != lastKnownScroll) if (currentScroll != lastKnownScroll)
{ {
lastKnownScroll = currentScroll; lastKnownScroll = currentScroll;