ponywheel

0.1.2 • Public • Published

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()
 

Readme

Keywords

none

Package Sidebar

Install

npm i ponywheel

Weekly Downloads

1

Version

0.1.2

License

MIT

Last publish

Collaborators

  • pixelass