SynthesizePinchGestureRequest

@Serializable
data class SynthesizePinchGestureRequest(val x: Double, val y: Double, val scaleFactor: Double, val relativeSpeed: Int? = null, val gestureSourceType: GestureSourceType? = null)

Request object containing input parameters for the InputDomain.synthesizePinchGesture command.

Constructors

Link copied to clipboard
constructor(x: Double, y: Double, scaleFactor: Double, relativeSpeed: Int? = null, gestureSourceType: GestureSourceType? = null)

Types

Link copied to clipboard
class Builder(val x: Double, val y: Double, val scaleFactor: Double)

A builder for SynthesizePinchGestureRequest, which allows setting the optional parameters of the InputDomain.synthesizePinchGesture command via a lambda.

Properties

Link copied to clipboard

Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type).

Link copied to clipboard
val relativeSpeed: Int? = null

Relative pointer speed in pixels per second (default: 800).

Link copied to clipboard

Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out).

Link copied to clipboard
val x: Double

X coordinate of the start of the gesture in CSS pixels.

Link copied to clipboard
val y: Double

Y coordinate of the start of the gesture in CSS pixels.