🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More
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

debug手势库

latest
Source
npmnpm
Version
0.0.9
Version published
Maintainers
1
Created
Source

finger-touch

debug手势库, 多指连击

Demo

点击demo查看

demo地址

Install

npm install finger-touch --save-dev

Usage

支持umd,cmd,amd等方式引入

import { FingerTouch } from 'finger-touch'
//或
const { FingerTouch } = require('finger-touch')
//或  
//直接使用FingerTouch

Example

FingerTouch(el, options, cb);

FingerTouch('.feed', {
    finger : 3,
    number : 2
}, (dom)=>{
    //dom : 触发事件的dom元素
})

//el可以传id,class,nodeName或dom节点等等

FingerTouch('.feed', options, cb)
FingerTouch(document.querySelectorAll('.feed'), options, cb)
FingerTouch($('.feed'), options, cb)

Options

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

FAQs

Package last updated on 05 Sep 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