Scrolling callback function added for the people who don't override the library and use it as it is. I and my colleagues came across many scenarios where we don't have to extend the library and wanted scroll callback function to do some action on the scroll. Sure we can call requestAnimationFrame and check if the page is scrolling or not, but I felt this more convenient.
Hi @techhahn -- thanks for the PR! This is indeed a feature that some people asked for.
It should be updated on npm as well, so feel free to try it out!
Scrolling callback function added for the people who don't override the library and use it as it is. I and my colleagues came across many scenarios where we don't have to extend the library and wanted scroll callback function to do some action on the scroll. Sure we can call requestAnimationFrame and check if the page is scrolling or not, but I felt this more convenient.