1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-01 13:20:11 +08:00

Add documentation to auto-scroll leniency

Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
Salman Ahmed
2021-02-01 22:04:44 +03:00
committed by GitHub
Unverified
parent 49e62c3a4b
commit 15fcabb128
@@ -241,6 +241,11 @@ namespace osu.Game.Overlays.Chat
/// </summary>
private class ChannelScrollContainer : OsuScrollContainer
{
/// <summary>
/// The chat will be automatically scrolled to end if and only if
/// the distance between the current scroll position and the end of the scroll
/// is less than this value.
/// </summary>
private const float auto_scroll_leniency = 10f;
private float? lastExtent;