seatgeek / react-infinite

A browser-ready efficient scrolling container based on UITableView
Other
2.71k stars 275 forks source link

Flaky onclick #246

Closed 8enmann closed 6 years ago

8enmann commented 6 years ago

What happens

When scrolling fast, when I stop, list item click events don't register on the first click or first couple of clicks

What I expect to happen

Click events are passed to children appropriately

Steps to reproduce

  1. git clone git@github.com:8enmann/scroll-demo.git
  2. npm install && npm start
  3. Open console and click an item. Scroll quickly and then click an item. Sometimes there's no console log on the first click.
garetht commented 6 years ago

This is deliberate by default in order to improve the user experience on certain platforms with inertial scrolling. You should be able to turn it off by setting this prop to 0.

8enmann commented 6 years ago

Seems to work. Thanks!