touch.touch.hold_and_drag
Declaration
lua
touch.hold_and_drag(x1, y1, x2, y2 [, hold_ms, drag_ms])
Description
Hold at position then drag to another.
Parameters
`x1,y1` — hold position
`x2,y2` — drag target
`hold_ms` — hold duration
`drag_ms` — drag duration
Return Values
none
Example
lua
touch.hold_and_drag(100, 100, 300, 300, 500, 300)