Input.synthesizePinchGesture

Synthesizes a pinch gesture over a time period by issuing appropriate touch events.

{
  "name": "synthesizePinchGesture",
  "parameters": [
    {
      "name": "x",
      "type": "integer",
      "description": "X coordinate of the start of the gesture in CSS pixels."
    },
    {
      "name": "y",
      "type": "integer",
      "description": "Y coordinate of the start of the gesture in CSS pixels."
    },
    {
      "name": "scaleFactor",
      "type": "number",
      "description": "Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out)."
    },
    {
      "name": "relativeSpeed",
      "type": "integer",
      "optional": true,
      "description": "Relative pointer speed in pixels per second (default: 800)."
    },
    {
      "name": "gestureSourceType",
      "$ref": "GestureSourceType",
      "optional": true,
      "description": "Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type)."
    }
  ],
  "description": "Synthesizes a pinch gesture over a time period by issuing appropriate touch events.",
  "experimental": true
}