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

@any-touch/rotate

Package Overview
Dependencies
1
Maintainers
1
Versions
77
Issues
File Explorer

Advanced tools

@any-touch/rotate

any-touch的识别器, 用来识别旋转手势.

    2.1.2latest

Version published
Maintainers
1
Yearly downloads
14,458
increased by182.82%

Weekly downloads

Readme

Source

@any-touch/rotate

旋转识别器.

安装

npm i -S @any-touch/rotate

快速开始

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

参数

名称数据类型默认值说明
nameString'rotate'自定义事件名称
pointLengthNumber2支持的触点数, 可支持多指拖拽
thresholdNumber0旋转超过0°才触发rotate事件
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