0.0.14 • Published 1 year ago
@af-utils/scrollend-polyfill v0.0.14
Scrollend Event Polyfill
This polyfill adds scrollend event
support via addEventListener / removeEventListener. onscrollend event handler is not supported.
Installation
npm install @af-utils/scrollend-polyfillUsage
import "@af-utils/scrollend-polyfill";Just import once at the top level. Does nothing when used in node environment.
Implementation Details
Scroll is considered ended when:
- touch events are not active ( user released touch );
scrollevent was not fired within100mssince last invocation.