mirror of https://github.com/ppy/osu
Add documentation to auto-scroll leniency
Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
parent
49e62c3a4b
commit
15fcabb128
|
@ -241,6 +241,11 @@ public DaySeparator(DateTimeOffset time)
|
|||
/// </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;
|
||||
|
|
Loading…
Reference in New Issue