Skip to content

Auto-scroll messages when list is "at the end/most recent message" #83

@SQL-MisterMagoo

Description

@SQL-MisterMagoo

I recently disabled the existing JS call because in use it was annoying - I can't remember what I didn't like, but it just didn't work well.

Maybe the first step would be to put the code back and test it out to see if it was just me !

//bool bottom = false;
//try
//{
// bottom = await JSRuntime.IsScrolledToBottom("blgmessagelist");
//}
//catch
//{
//}
if (Messages?.Any() ?? false)
{
options.AfterId = GetLastMessageId();
}
await FetchNewMessages(options, tokenSource.Token);
//if (Messages?.Any() ?? false)
//{
// if (bottom)
// {
// _ = await JSRuntime.ScrollIntoView(GetLastMessageId());
// }
//}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions