1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-21 04:13:21 +08:00

Do not scroll headers to when scrolling position is negative.

This commit is contained in:
Huo Yaoyuan 2017-05-22 15:54:58 +08:00
parent d0ff9e6576
commit 85684e5fee

View File

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