Skip to content

Compose SemanticsAutoScrollProviderImpl doesn't work in LazyColumn #696

@tprochazka

Description

@tprochazka

SemanticsAutoScrollProviderImpl works by trying to find the expected element by matcher and scrolling to it.
But LayzColumn works in a way that there is no element outside the visible screen.
You need to scroll there to have it.

So SemanticsAutoScrollProviderImpl should instead do something like this:

 val list = child<KNode> {
     addSemanticsMatcher(SemanticsMatcher.keyIsDefined(SemanticsProperties.VerticalScrollAxisRange))
 }
 list.assertExists()
 list.performScrollToNode(matcher)

Where matcher is the original element that we want to find.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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