From b79e309c2f8d127071b19c2b62a025352878b469 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 13 Jul 2017 14:24:41 +0900 Subject: [PATCH] Don't lock scroll position of SectionsContainer header elements on negative scroll Feels better in all cases. --- osu.Game/Graphics/Containers/SectionsContainer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osu.Game/Graphics/Containers/SectionsContainer.cs b/osu.Game/Graphics/Containers/SectionsContainer.cs index 617c7eeb2c..cee7bb6011 100644 --- a/osu.Game/Graphics/Containers/SectionsContainer.cs +++ b/osu.Game/Graphics/Containers/SectionsContainer.cs @@ -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;