vue-infinite-scroll
vue-infinite-scroll copied to clipboard
Passive scroll listener
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.