@joyfulljs/xtouch
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

xtouch

With XTouch, you only need to handle touch event only, it will just works fine on both touch device and mouse device or device that support both.

useage

import XTouch from "@joyfulljs/xtouch";

function onStart(e){};
function onMove(e){};
function onEnd(e){};

const capture = false; // { passive: false }
const unbind = XTouch(div, { onStart, onMove, onEnd, capture });

// unbind();

api

docs

license

MIT@elvinzhu

Readme

Keywords

Package Sidebar

Install

npm i @joyfulljs/xtouch

Weekly Downloads

1

Version

1.0.5

License

MIT

Unpacked Size

10.9 kB

Total Files

6

Last publish

Collaborators

  • elvinzhu