Polyfill for scrollend event
npm install @af-utils/scrollend-polyfillThis polyfill adds scrollend event
support via addEventListener / removeEventListener. onscrollend event handler is not supported.
``bash`
npm install @af-utils/scrollend-polyfill
`tsx`
import "@af-utils/scrollend-polyfill";
Just import once at the top level. Does nothing when used in node environment.
Scroll is considered ended when:
- touch events are not active ( user released touch );
- scroll event was not fired within 100ms` since last invocation.