1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 09:02:55 +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 scrollContainer = new ScrollContainer
{ {
ScrollbarOverlapsContent = false,
ScrollDraggerAnchor = Anchor.TopLeft,
RelativeSizeAxes = Axes.Y, RelativeSizeAxes = Axes.Y,
Width = width, Width = width,
Margin = new MarginPadding { Left = sidebar_width }, Margin = new MarginPadding { Left = sidebar_width },
@ -131,8 +129,11 @@ namespace osu.Game.Overlays
protected override void Update() protected override void Update()
{ {
base.Update(); base.Update();
if (scrollContainer.Current != lastKnownScroll) if (scrollContainer.Current != lastKnownScroll)
{ {
lastKnownScroll = scrollContainer.Current;
for (int i = sections.Length - 1; i >= 0; i--) for (int i = sections.Length - 1; i >= 0; i--)
{ {
var section = sections[i]; var section = sections[i];