Scroll chat line to channel center

We may eventually want that encapsulated within `ScrollIntoView`, as it
would also come in handy for `GameplayLeaderboard`.
This commit is contained in:
Salman Ahmed
2022-03-10 02:49:23 +03:00
parent 93cf93943f
commit 80c0df6af5
3 changed files with 18 additions and 8 deletions

View File

@ -47,6 +47,12 @@ namespace osu.Game.Overlays.Chat
updateTrackState();
}
public new void ScrollTo(float value, bool animated = true, double? distanceDecay = null)
{
base.ScrollTo(value, animated, distanceDecay);
updateTrackState();
}
public new void ScrollIntoView(Drawable d, bool animated = true)
{
base.ScrollIntoView(d, animated);