@af-utils/scrollend-polyfill
v0.0.14
Published
Polyfill for scrollend event
Downloads
13,980
Readme
Scrollend Event Polyfill
This polyfill adds scrollend event
support via addEventListener
/ removeEventListener
. onscrollend
event handler is not supported.
Installation
npm install @af-utils/scrollend-polyfill
Usage
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 );
scroll
event was not fired within100ms
since last invocation.