Fix searching in settings not correctly invalidating the scroll position

This commit is contained in:
Dean Herbert
2021-08-19 01:25:57 +09:00
parent fc3fa4f241
commit af0c7ed108
2 changed files with 20 additions and 1 deletions

View File

@ -170,13 +170,22 @@ namespace osu.Game.Graphics.Containers
if (source == InvalidationSource.Child && (invalidation & Invalidation.DrawSize) != 0)
{
lastKnownScroll = null;
InvalidateScrollPosition();
result = true;
}
return result;
}
protected void InvalidateScrollPosition()
{
Schedule(() =>
{
lastKnownScroll = null;
lastClickedSection = null;
});
}
protected override void UpdateAfterChildren()
{
base.UpdateAfterChildren();