From 85684e5fee4b70f8f1d35d8f1fe1598a6b2add46 Mon Sep 17 00:00:00 2001 From: Huo Yaoyuan Date: Mon, 22 May 2017 15:54:58 +0800 Subject: [PATCH] Do not scroll headers to when scrolling position is negative. --- osu.Game/Graphics/Containers/SectionsContainer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game/Graphics/Containers/SectionsContainer.cs b/osu.Game/Graphics/Containers/SectionsContainer.cs index 7b57cb1b56..5fdb5e869e 100644 --- a/osu.Game/Graphics/Containers/SectionsContainer.cs +++ b/osu.Game/Graphics/Containers/SectionsContainer.cs @@ -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;