Struct cdp::input::SynthesizeScrollGestureCommand [] [src]

pub struct SynthesizeScrollGestureCommand<'a> {
    pub x: f64,
    pub y: f64,
    pub x_distance: Option<f64>,
    pub y_distance: Option<f64>,
    pub x_overscroll: Option<f64>,
    pub y_overscroll: Option<f64>,
    pub prevent_fling: Option<bool>,
    pub speed: Option<i32>,
    pub gesture_source_type: Option<GestureSourceType>,
    pub repeat_count: Option<i32>,
    pub repeat_delay_ms: Option<i32>,
    pub interaction_marker_name: Option<Cow<'a, str>>,
}

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

Command Input.synthesizeScrollGesture

Domain Module: cdp::input
Command Struct: cdp::input::SynthesizeScrollGestureCommand
Response Struct: cdp::input::SynthesizeScrollGestureResponse

Fields

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

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

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

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

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

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

Prevent fling (default: true).

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

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

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

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

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

Trait Implementations

impl<'a> Clone for SynthesizeScrollGestureCommand<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for SynthesizeScrollGestureCommand<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for SynthesizeScrollGestureCommand<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'a> CdpCommand for SynthesizeScrollGestureCommand<'a>
[src]

COMMAND_NAME: &'static str = "Input.synthesizeScrollGesture"

impl<'a> SerializeCdpCommand for SynthesizeScrollGestureCommand<'a>
[src]

[src]

[src]

impl<'de, 'a> DeserializeCdpCommand<'de> for SynthesizeScrollGestureCommand<'a>
[src]

[src]

impl<'b, 'a> HasCdpResponse<'b> for SynthesizeScrollGestureCommand<'a>
[src]