loryjs / lory

☀ Touch enabled minimalistic slider written in vanilla JavaScript.
http://loryjs.github.io/lory/
MIT License
2.28k stars 243 forks source link

Passive Event Listeners / Scrolling Performance #709

Closed yshterev closed 6 years ago

yshterev commented 7 years ago

According to latest best practices setting the passive option on touch and wheel event listeners can improve scrolling performance, for browsers that support it. Google's Lighthouse audit tool is giving a penalty for that.

More info on this page and also how It can be implemented with a fallback.

johjacb commented 6 years ago

@yshterev could you post your code solution? thanks!

Saturate commented 6 years ago

@johjacb this has been fixed in #715