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
parent 49e62c3a4b
commit 15fcabb128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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;