Skip to content

Click events not always registering for Rows when scrolling fast #128

@johot

Description

@johot

So I have created a basic ListBox using react-window and everything is rendering great!

One problem I have however is that if I scroll the list and right after scrolling click on an item it's click handler (a div in this case) is not always invoked.

My guess is that I click before the item has been properly rendered and placed on the screen. Does this sound plausible?

Maybe if the FixedSizeList could have it's own click handler that could calculate which items should have been clicked in case it has not been rendered fully yet?

Is there any strategy or workaround for these kinds of problems? Is it a known issue?

Thanks for a great library!

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