Skip to navigation

swipe

Referenced In

Fields

FieldTypeDescriptionDefault
swipeone of:
- string
- object(Swipe (directional))
- object(Swipe (point-to-point))
Required. Swipe (or scroll) a surface in a direction or between two points. The direction is the virtual finger’s motion: swiping up moves content up, revealing content further down the page. Works on app and browser surfaces.—

Examples

{
"swipe": "left"
}
{
"swipe": {
"direction": "up",
"distance": 0.8,
"surface": {
"app": "myapp"
}
}
}
{
"swipe": {
"from": {
"x": 200,
"y": 600
},
"to": {
"x": 200,
"y": 200
},
"duration": 250
}
}