Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

@any-touch/pinch

Package Overview
Dependencies
1
Maintainers
1
Versions
77
Issues
File Explorer

Advanced tools

@any-touch/pinch

any-touch的识别器, 用来识别捏合手势.

    2.1.2latest

Version published
Maintainers
1
Yearly downloads
14,654
increased by188.75%

Weekly downloads

Readme

Source

@any-touch/pinch

缩放识别器.

安装

npm i -S @any-touch/pinch

快速开始

// 只加载pinch识别器(拖拽) import Core from '@any-touch/core'; import pinch from '@any-touch/pinch'; const at = new Core(el); at.use(pinch, 参数) // 缩放 at.on('pinch', (event) => { // event包含位置/速度/方向等信息 });

参数

名称数据类型默认值说明
nameString'pinch'自定义事件名称
pointLengthNumber2支持的触点数, 可支持多指拖拽
thresholdNumber0缩放超过0倍才触发pinch事件
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc