element_touch
Simulate touch interactions on WeChat mini-program elements by specifying element ID and event type (touchstart, touchmove, or touchend). Include optional touch points for precise control.
Instructions
触发元素触摸事件(touchstart / touchmove / touchend)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | 触摸事件类型 | |
| touches | No | 触摸点信息数组,如 [{identifier, pageX, pageY}] | |
| element_id | Yes | ||
| changedTouches | No | 变化的触摸点信息数组 |