smart-scroll

detects bot vs user scroll events

Usage no npm install needed!

<script type="module">
  import smartScroll from 'https://cdn.skypack.dev/smart-scroll';
</script>

README

smart-scroll

Detects user vs programmatic scrolling

How to install

  1. run npm i smart-scroll
  2. add require('smart-scroll') to your src

or

  1. 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
});