Skip to content

Problem with Modifier.pointerInput #39

@ITmind

Description

@ITmind

Not use pointerInput(Unit), It captures the lambda with all the variables inside.
Use, for example, pointerInput(onValueChange).
I spent a day trying to figure out why the new version stopped selecting ratings in some cases.

Description of a similar problem:
https://stackoverflow.com/questions/70849243/listeners-inside-detecttapgestures-only-ever-get-the-first-variable-value-othe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions