eddiemf/vue-affix

Use {passive: true} for the scroll event listener

Closed this issue · 1 comments

Hi,

Would it be possible to add an option (or maybe, always set it) so we could ad {passive: true} to the event listener ?
This would improve performance in many cases (and improve audits with tools like Lighthouse for instance)

I'm talking about this line :

this.scrollContainer.addEventListener('scroll', this.handleScroll);

Thanks !