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:
parent
d0ff9e6576
commit
85684e5fee
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user