Add passive listener option
Make sure these boxes are checked before submitting your issue -- thank you!
- [x] Check FAQ and Caveats
- [x] Search if there's already one reported in Issues
- [ ] Prepare a JSFiddle reproducing the issue
- [ ] Provide a page or source code where the issue can be checked
It would be nice to have the option to add the event listeners passively.
See https://developers.google.com/web/tools/lighthouse/audits/passive-event-listeners?utm_source=lighthouse&utm_medium=cli
Latest related page on this: https://web.dev/uses-passive-event-listeners/
From https://github.com/mdbootstrap/perfect-scrollbar/issues/975#issuecomment-731771857, there is a PR to set the listener's passive: false since they call preventDefault(). It doesn't look like anyone plans to add support for making the value optionally set by consumers of this library.