g787543/infinite-react-carousel

Passive listeners

MaikaiMa opened this issue · 0 comments

Describe the bug
Does not use passive listeners to improve scrolling performance. This also results in a reduced score in lighthouse for example.

To Reproduce
Steps to reproduce the behavior:

  1. Run a lighthouse audit
  2. See error listed under "best practices"

Expected behavior
Use of passive listeners for the touch and wheel event listeners.

Desktop (please complete the following information):

  • OS: MacOS 10.15.3
  • Browser: Chrome
  • Version: 81

Additional context
This requires a browser check to see if passive listeners are supported.