touch

touch.touch.swipe

Declaration
lua
touch.swipe(x1, y1, x2, y2 [, duration_ms])
Description
Simulate swipe gesture.
Parameters
`x1,y1` — start coordinates `x2,y2` — end coordinates `duration_ms` (number, optional) — swipe duration, default 500ms
Return Values
none
Example
lua
touch.swipe(375, 1000, 375, 200, 300) -- swipe up