Picture of Matt Leathes
Re: creating Scroll Events
by Matt Leathes - Wednesday, 18 April 2018, 11:08 AM
 

Cool, glad I could be of help.

Just be aware - running code on 'scroll' can be hugely detrimental to performance. You should seriously consider using either _.throttle or _.debounce to restrict the amount of times your onScroll function executes.