Reusable, throttled events on the window object.
npm install @odopod/odo-window-events> Reusable, throttled events on the window object.
``shell`
npm install @odopod/odo-window-events
`js
import OdoWindowEvents from '@odopod/odo-window-events';
OdoWindowEvents.onScroll(function (scrollTop, scrollLeft) {
console.log('Scrolled', scrollTop, scrollLeft);
});
``
Visit the [Odo component directory][permalink] for demos, code examples, and documentation.
[permalink]: http://code.odopod.com/odo-window-events/