Skip to navigation

Swipe (point-to-point)

Referenced In

Fields

FieldTypeDescriptionDefault
fromobject(Point)Required. A pixel coordinate on the surface, measured from its top-left corner (0, 0).—
toobject(Point)Required. A pixel coordinate on the surface, measured from its top-left corner (0, 0).—
durationintegerOptional. Duration of the swipe movement in milliseconds.

Minimum: 1
500
surfaceone of:
- string
- object(Browser surface)
- object(App surface)
Optional. The browser window/tab or app window this step acts on. Omit to act on the active surface — the most recently opened, focused, or explicitly targeted surface, whatever its kind (a background process can’t be swiped). Specifying a surface switches the active surface for the steps that follow. App surfaces use the object form ({ “app”: … }).—

Examples

{
"from": {
"x": 42,
"y": 42
},
"to": {
"x": 42,
"y": 42
},
"duration": 500,
"surface": "chrome"
}