ponywheel

Mousewheel for touch devices

Usage no npm install needed!

<script type="module">
  import ponywheel from 'https://cdn.skypack.dev/ponywheel';
</script>

README

ponywheel

Mousewheel for touch devices

npm install ponywheel

Documentation

npm GitHub license Travis David David GitHub issues GitHub forks GitHub stars js-standard-style Standard Version Commitizen friendly

Usage

const ponyWheel = new PonyWheel(
  {
    rootNode: document.body,
    eventTarget: window
  });

ponyWheel.init()

window.addEventListener('ponywheel',(e)=> {
  console.log(e.detail) // => mousewheel.e
})

// ponyWheel.destroy()