tp-pointer-events
v1.0.0
Published
Extend the mobile-side event touchstart / touchmove / touchend logic to the desktop.
Downloads
1
Readme
tp-pointer-events
Intro
Extend the mobile-side event touchstart / touchmove / touchend logic to the desktop.
Example
import PointerEvents from 'tp-pointer-events';
function pointerDown(e){
// do something
}
function pointerMove(e){
// do something
}
function pointerUp(e){
// do something
}
const pointerEvents = new PointerEvents(this._el, pointerDown, pointerMove, pointerUp, {});
Install
API
Development
npm t
: Run test suitenpm start
: Runnpm run build
in watch modenpm run test:watch
: Run test suite in interactive watch modenpm run test:prod
: Run linting and generate coveragenpm run build
: Generate bundles and typings, create docsnpm run lint
: Lints codenpm run commit
: Commit using conventional commit style (husky will tell you to use it if you haven't :wink:)
License
MIT