@hackkun/touch
Advanced tools
Comparing version 1.0.20 to 1.0.21
{ | ||
"name": "@hackkun/touch", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"description": "手势库", | ||
@@ -36,3 +36,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "dd5c46a6dddb6a74836e4ce568bdc035db2d45c7" | ||
"gitHead": "41a94034b7ee370d2a51648923d356de316cbdcd" | ||
} |
# `@hackkun/touch` | ||
> 手势库,支持移动端和 PC 端,只支持 import 方式引用 | ||
> 移动端事件:start end tap singleTap doubleTap longTap drag swipe pinch rotate | ||
> PC 端事件:start end tap singleTap doubleTap longTap drag swipe wheelStart wheel wheelEnd | ||
> 自定义 event 扩展了: | ||
> drag 下 deltaX,deltaY | ||
> swipe 下 Left Right Up Down | ||
> wheel 和 pinch 下 ratio | ||
## Usage | ||
## 介绍 | ||
- 移动端事件:start end tap singleTap doubleTap longTap drag swipe pinch rotate | ||
- PC 端事件:start end tap singleTap doubleTap longTap drag swipe wheelStart wheel wheelEnd | ||
- 自定义 event 扩展了: | ||
- drag 下 deltaX,deltaY | ||
- swipe 下 Left Right Up Down | ||
- wheel 和 pinch 下 ratio | ||
## 使用 | ||
``` | ||
@@ -14,0 +17,0 @@ import { HackTouchMobile, HackTouchPc } from '@hackkun/touch' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12092
21