Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

finger-touch

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

finger-touch

手势库

Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
9
350%
Maintainers
1
Weekly downloads
 
Created
Source

finger-touch

mini手势库, 多指连击

某些浏览器兼容性不太好, 尽量只设置两个手指头

Install

npm install finger-touch --save-dev

Example

new touch(el, options, cb);
new touch('#list', {
    finger : 2,
    number : 3,
    timer : 1000
}, function(dom){});
new touch('.item', {}, function(dom){});
new touch('div', {}, function(dom){});
new touch(document.getElementById('#list'), {}, function(dom){});
new touch(document.querySelectorAll('.item'), {}, function(dom){});
new touch($('#list'), {}, function(dom){});

Options

NameDefaultDescription
finger2几个手指头
number2连续几次触碰屏幕
timer500连续两次触碰屏幕的最大时间差

FAQs

Package last updated on 16 Aug 2017

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