1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 21:03:08 +08:00

Fix lastKnownScroll never being written to.

This commit is contained in:
Thomas Müller 2016-11-12 12:30:12 +01:00
parent 98b69bc6c6
commit e923da1998

View File

@ -67,8 +67,6 @@ namespace osu.Game.Overlays
},
scrollContainer = new ScrollContainer
{
ScrollbarOverlapsContent = false,
ScrollDraggerAnchor = Anchor.TopLeft,
RelativeSizeAxes = Axes.Y,
Width = width,
Margin = new MarginPadding { Left = sidebar_width },
@ -131,8 +129,11 @@ namespace osu.Game.Overlays
protected override void Update()
{
base.Update();
if (scrollContainer.Current != lastKnownScroll)
{
lastKnownScroll = scrollContainer.Current;
for (int i = sections.Length - 1; i >= 0; i--)
{
var section = sections[i];