mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Fix searching in settings not correctly invalidating the scroll position
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user