pl.wendigo.chrome.api.input / SynthesizePinchGestureRequest

SynthesizePinchGestureRequest

data class SynthesizePinchGestureRequest (source)

Represents request frame that can be used with Input#synthesizePinchGesture operation call.

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

Link
Input#synthesizePinchGesture method documentation.

See Also

InputOperations.synthesizePinchGesture

Constructors

<init>

SynthesizePinchGestureRequest(x: Double, y: Double, scaleFactor: Double, relativeSpeed: Int? = null, gestureSourceType: GestureSourceType? = null)

Represents request frame that can be used with Input#synthesizePinchGesture operation call.

Properties

gestureSourceType

val gestureSourceType: GestureSourceType?

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

relativeSpeed

val relativeSpeed: Int?

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

scaleFactor

val scaleFactor: Double

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

x

val x: Double

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

y

val y: Double

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