nuke-swipe
v2.3.12
Published
滑动手势
Downloads
22
Readme
Swipe
- category: API
- chinese: 滑动手势
- type: API
Usage
Simple sliding gesture Library
API
Attribute
|Name|Type|Default|Description| |:---------------|:--------|:----|:----------| |initialVelocityThreshold|number|0.2|Minimum velocity threshold| |verticalThreshold|number|1|Maximum threshold in vertical velocity direction| |horizontalThreshold|number|5|Maximum threshold of horizontal velocity direction| |horizontal|boolean|true|Whether listen to horizontal gestures| |vertical|boolean|true|Whether listen to vertical gestures|
Event
|Name|Parameter|Description| |:---------------|:--------|:----------| |onSwipeBegin|{ direction, distance, velocity }|..| |onSwipe|{ direction, distance, velocity }|..| |onSwipeEnd|{ direction, distance, velocity }|..|
direction is string type:
const directions = { SWIPE_UP: 'SWIPE_UP', SWIPE_DOWN: 'SWIPE_DOWN', SWIPE_LEFT: 'SWIPE_LEFT', SWIPE_RIGHT: 'SWIPE_RIGHT' };
The Other
- Chat with @翊晨[yichen] in Dingtalk desktop App Download
- DingTalk Group