vue-infinite-scroll icon indicating copy to clipboard operation
vue-infinite-scroll copied to clipboard

Passive scroll listener

Open nachogarcia opened this issue 3 years ago • 0 comments

Using this library causes the following performance issue, reported in Google Lighthouse:

Does not use passive listeners to improve scrolling performance

I guess this would be simply fixed by using { passive: true } in https://github.com/ElemeFE/vue-infinite-scroll/blob/775b7d386ff4e609eb3360a4ccecee7d9a015c63/src/directive.js#L108

I don't think we would need to pass an option for this since the use for an infinite scroll is not to prevent scrolling.

nachogarcia avatar Oct 11 '21 14:10 nachogarcia