You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@joyfulljs/xtouch

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@joyfulljs/xtouch

bind touch or mouse event cross env

1.0.5
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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

Keywords

touch

FAQs

Package last updated on 04 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts