Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

any-touch

Package Overview
Dependencies
Maintainers
1
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

any-touch

一个手势库

  • 0.0.14
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
310
decreased by-26.71%
Maintainers
1
Weekly downloads
 
Created
Source

any-touch NPM Version NPM Downloads codecov CircleCI

:wave: 一个手势库

演示

查看

安装

npm i -S any-touch

使用

import AnyTouch from 'any-touch';

// 初始化
const el = doucument.getElementById('gesture-box');
const at = new AnyTouch(el);

// 绑定手势
at.on('pan', ev=>{
  console.log(ev.deltaX);
})

// 解除绑定
at.off('pan')

// 销毁
at.destory();

支持

  • 支持手势: tap | doubletap | pan | swipe | pinch | rotate.
  • 支持鼠标(mouse)
  • 手势互斥(requireFailure)

FAQs

Package last updated on 25 Dec 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc