Skip to content

onLayout can be triggered multiple times and break the calculation logic#3

Description

@anthlasserre

Hey @thinhkhang97 馃憢馃徏
Me again 馃槄

By using your library I have faced an issue on the checkInViewPort calculation.

The View set in the ViewPortDetectorProvider can trigger multiple times the onLayout callback depending on what your children contain.

I was thinking about to apply a default delay to enable the checkInViewPort call.

What are your thoughts?

I'm about to raise a PR with this suggestion

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