synthesizePinchGesture
suspend fun synthesizePinchGesture(args: Input.SynthesizePinchGestureParameter, mode: CommandMode = CommandMode.DEFAULT)
Synthesizes a pinch gesture over a time period by issuing appropriate touch events.
suspend fun synthesizePinchGesture(x: Double, y: Double, scaleFactor: Double, relativeSpeed: Int? = null, gestureSourceType: Input.GestureSourceType? = null)
Synthesizes a pinch gesture over a time period by issuing appropriate touch events.
Parameters
x
X coordinate of the start of the gesture in CSS pixels.
y
Y coordinate of the start of the gesture in CSS pixels.
scaleFactor
Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out).
relativeSpeed
Relative pointer speed in pixels per second (default: 800).
gestureSourceType
Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type).