SwipeGesture Fields |
The SwipeGesture type exposes the following members.
Name | Description | |
---|---|---|
ACTION_DISTANCE | ||
actionDistance |
The min distance to fire onAction event
派发onAction事件的最小距离。如果手指扫过的距离少于此值,onAction不会触发(但onEnd仍然会派发)
| |
delta |
移动的变化值
| |
position |
你可以在onBegin事件中设置这个值,那个后续将根据手指移动的距离修改这个值。如果不设置,那position初始为(0,0),反映手指扫过的距离。
| |
snapping |
是否把变化量强制为整数。默认true。
| |
velocity |
手指离开时的加速度
|