smart-scroll
v0.0.6
Published
detects bot vs user scroll events
Downloads
8
Maintainers
Readme
smart-scroll
Detects user vs programmatic scrolling
How to install
- run
npm i smart-scroll
- add
require('smart-scroll')
to your src
or
- import dist file via html
<script src="${'path to project'}/dist/smart-scroll.js"></script>
- requires jQuery be loaded prior
How to use
$(window).botScroll(function(){
// bot scroll events only
});
$(window).userScroll(function(){
// user scroll events only
});