Closed undirectlookable closed 6 years ago
Thank you! Someone made a request for this in #56 when version 2 came out, it's great to have the new feature.
I have some requests, but they are all very minor.
useCapture
is declared in an if statement and used in a following block. Although it works, please don't do this as it is confusing. You can declare it at the base level of the module instead, possibly with just the try/catch and no function call.isSupportsPassive
is grammatically incorrect, a better name would be browserSupportsPassive
or passiveIsSupported
. If you remove the function call this is no longer important.
Explain Document - https://developers.google.com/web/tools/lighthouse/audits/passive-event-listeners
It makes scroll smoother.