scroll-listener
v1.0.0
Published
A lightweight passive approach to performant scroll monitoring with requestAnimationFrame fallback.
Downloads
3
Readme
Scroll Listener
import { Container, addScrollHandler, removeScrollHandler } from 'scroll-listener';
let handler = () => { alert('hi'); };
addScrollHandler(Container, handler);