pl.wendigo.chrome.api.input / SynthesizeScrollGestureRequest

SynthesizeScrollGestureRequest

data class SynthesizeScrollGestureRequest (source)

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

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

Link
Input#synthesizeScrollGesture method documentation.

See Also

InputOperations.synthesizeScrollGesture

Constructors

<init>

SynthesizeScrollGestureRequest(x: Double, y: Double, xDistance: Double? = null, yDistance: Double? = null, xOverscroll: Double? = null, yOverscroll: Double? = null, preventFling: Boolean? = null, speed: Int? = null, gestureSourceType: GestureSourceType? = null, repeatCount: Int? = null, repeatDelayMs: Int? = null, interactionMarkerName: String? = null)

Represents request frame that can be used with Input#synthesizeScrollGesture 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).

interactionMarkerName

val interactionMarkerName: String?

The name of the interaction markers to generate, if not empty (default: "").

preventFling

val preventFling: Boolean?

Prevent fling (default: true).

repeatCount

val repeatCount: Int?

The number of times to repeat the gesture (default: 0).

repeatDelayMs

val repeatDelayMs: Int?

The number of milliseconds delay between each repeat. (default: 250).

speed

val speed: Int?

Swipe speed in pixels per second (default: 800).

x

val x: Double

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

xDistance

val xDistance: Double?

The distance to scroll along the X axis (positive to scroll left).

xOverscroll

val xOverscroll: Double?

The number of additional pixels to scroll back along the X axis, in addition to the given distance.

y

val y: Double

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

yDistance

val yDistance: Double?

The distance to scroll along the Y axis (positive to scroll up).

yOverscroll

val yOverscroll: Double?

The number of additional pixels to scroll back along the Y axis, in addition to the given distance.