perfect-scrollbar icon indicating copy to clipboard operation
perfect-scrollbar copied to clipboard

Add passive listener option

Open dreitzner opened this issue 6 years ago • 2 comments

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

dreitzner avatar Jun 07 '19 06:06 dreitzner

Latest related page on this: https://web.dev/uses-passive-event-listeners/

Splaktar avatar Dec 13 '20 04:12 Splaktar

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.

Splaktar avatar Dec 13 '20 04:12 Splaktar