# ph-gesture

> touch swipe tap event touchevent gesture

Latest version **1.0.0-beta.5** (published 2021-10-03) · 0 weekly downloads

## Install

```sh
npm install ph-gesture
pnpm add ph-gesture
yarn add ph-gesture
bun add ph-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 | 1.0.0-beta.5 |
| Published | 2021-10-03 |
| First published | 2021-08-26 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | phoeon |

## Links

- npm: https://www.npmjs.com/package/ph-gesture
- npm.io page: https://npm.io/package/ph-gesture

## Dependencies (1)

- [ph-util](https://npm.io/package/ph-util.md) ^1.0.0

## Recent versions

- 1.0.0-beta.5 (latest) — 2021-10-03
- 1.0.0-beta.4 — 2021-10-03
- 1.0.0-beta.3 — 2021-10-02
- 1.0.0-beta.2 — 2021-10-02
- 1.0.0-beta.1 — 2021-10-02
- 1.0.0-beta.0 — 2021-08-26

## README

# 🚀 Welcome to your new awesome project!

This project has been created using **webpack-cli**, you can now run

```
npm i ph-gesture

```
### update
> + touchmove event meta:{tx,ty,dx,dy,end,speed}
usage
```typescript
//支持的手势事件
type TouchType = 'tap'|'longtap'|'swipe'|'swipeleft'|'swiperight'|'swipedown'|'swipeup'|'touchmove'
import PhGesture from 'ph-gesture'
const dom = document.body
const callback = (e:Event,type:string)=>{
    ///todo?
}
new PhGesture(dom,callback,'swipe',{select?:boolean,stop?:boolean,timeout?:number,capture?:boolean})
new PhGesture(dom,callback,'swipeleft')
new PhGesture(dom,callback,'swiperight')
new PhGesture(dom,callback,'swipetop')
new PhGesture(dom,callback,'swipebottom')
new PhGesture(dom,callback,'tap')
new PhGesture(dom,callback,'longtap')
```

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