petyosi / react-virtuoso

The most powerful virtual list component for React
https://virtuoso.dev
MIT License
5.25k stars 301 forks source link

Page down / spacebar buttons don't work in large lists #3

Closed xrd closed 5 years ago

xrd commented 5 years ago

Steps to reproduce:

  1. Go to: https://virtuoso.dev/?path=/story/introduction--100-000-items
  2. Click into the list.
  3. Use page down or spacebar.
  4. Notice the list scrolls down one page.
  5. Hit the spacebar/page down button again. Notice it no longer works.

Tested on Chrome Version 72.0.3626.109 (Official Build) (64-bit), Linux.

petyosi commented 5 years ago

Hey @xrd ,

thank you very much for spotting that. I fixed that in https://github.com/petyosi/react-virtuoso/commit/af28a5cc79d16d3c774ae912763980d0a5431b7a, published 0.2.0 and updated the examples. Works fine on my side, tested in Chrome, Safari, and Firefox.