1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-04 00:14:12 +08:00

Use Update instead of UpdateAfterChildren (no need for the latter)

This commit is contained in:
Dean Herbert
2021-02-02 15:57:17 +09:00
Unverified
parent b3105fb292
commit a76314a876
+4 -3
View File
@@ -257,9 +257,9 @@ namespace osu.Game.Overlays.Chat
lastExtent = null;
}
protected override void UpdateAfterChildren()
protected override void Update()
{
base.UpdateAfterChildren();
base.Update();
// If the user has scrolled to the bottom of the container, we should resume tracking new content.
if (UserScrolling && IsScrolledToEnd(auto_scroll_leniency))
@@ -270,7 +270,8 @@ namespace osu.Game.Overlays.Chat
if (requiresScrollUpdate)
{
ScheduleAfterChildren(() =>
// Schedule required to allow FillFlow to be the correct size.
Schedule(() =>
{
if (!UserScrolling)
{