# anima-gesture

> Anima gesture

Latest version **2.0.1** (published 2016-05-25) · 0 weekly downloads

## Install

```sh
npm install anima-gesture
pnpm add anima-gesture
yarn add anima-gesture
bun add anima-gesture
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2016-05-25 |
| First published | 2015-12-28 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | yuanfei.gyf |
| Maintainers | jaredleechn, smbey0nd, yuanfei.gyf |
| Keywords | gesture |

## Links

- npm: https://www.npmjs.com/package/anima-gesture
- Repository: https://gitlab.alibaba-inc.com/animajs/gesture
- Homepage: http://animajs.org/gesture/
- Issues: git://gitlab.alibaba-inc.com/animajs/gesture.git/issues
- npm.io page: https://npm.io/package/anima-gesture

## Dependencies (2)

- [anima-yocto-lite](https://npm.io/package/anima-yocto-lite.md) ^2.0.0
- [anima-yocto-touch](https://npm.io/package/anima-yocto-touch.md) ^2.0.0

## Recent versions

- 2.0.1 (latest) — 2016-05-25
- 2.0.0 — 2016-05-25
- 1.0.2 — 2015-12-28
- 1.0.6 — 2015-12-28
- 1.0.5 — 2015-12-28
- 1.0.4 — 2015-12-28
- 1.0.3 — 2015-12-28
- 1.0.1 — 2015-12-28
- 1.0.0 — 2015-12-28

## README

# gesture

---

移动端复杂手势操作模块

---

### 使用

在`anima-yocto`上进行扩展，引入后即可按照`anima-yocto`的方法使用复杂手势

````js
import $ from 'anima-yocto'
import 'anima-gesture';

$(el).longTap(function(){

})

$(el).on('longTap', function(){

})
````

### 手势

支持的手势及描述，具体手势的信息都可以在event对象上获取。

**注意：`drag`、`pinch`类手势会在`touchmove`阶段调用`preventDefault`事件来阻止默认行为**

+ 长按
	+ longTap 长按
+ 双击
	+ doubleTap 双击
+ 滑动
	+ swipe 滑动
	+ swipeLeft 向左滑动
	+ swipeRight 向右滑动
	+ swipeUp 向上滑动
	+ swipeDown 向下滑动
+ 拖动
	+ drag 拖动
	+ dragStart 拖动开始
	+ dragEnd 拖动终止
+ 缩放
	+ pinchStart 缩放开始
	+ pinch 缩放
	+ pinchIn 缩小
	+ pinchOut 放大
	+ pinchEnd 缩放结束

> 如果需要添加新的手势或问题，欢迎提issue~~

---
_Source: https://npm.io/package/anima-gesture · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
