pub struct SynthesizeScrollGestureParams {
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<i64>,
pub gesture_source_type: Option<GestureSourceType>,
pub repeat_count: Option<i64>,
pub repeat_delay_ms: Option<i64>,
pub interaction_marker_name: Option<String>,
}
Expand description
Synthesizes a scroll gesture over a time period by issuing appropriate touch events. synthesizeScrollGesture
Fields§
§x: f64
X coordinate of the start of the gesture in CSS pixels.
y: f64
Y coordinate of the start of the gesture in CSS pixels.
x_distance: Option<f64>
The distance to scroll along the X axis (positive to scroll left).
y_distance: Option<f64>
The distance to scroll along the Y axis (positive to scroll up).
x_overscroll: Option<f64>
The number of additional pixels to scroll back along the X axis, in addition to the given distance.
y_overscroll: Option<f64>
The number of additional pixels to scroll back along the Y axis, in addition to the given distance.
prevent_fling: Option<bool>
Prevent fling (default: true).
speed: Option<i64>
Swipe speed in pixels per second (default: 800).
gesture_source_type: Option<GestureSourceType>
Which type of input events to be generated (default: ‘default’, which queries the platform for the preferred input type).
repeat_count: Option<i64>
The number of times to repeat the gesture (default: 0).
repeat_delay_ms: Option<i64>
The number of milliseconds delay between each repeat. (default: 250).
interaction_marker_name: Option<String>
The name of the interaction markers to generate, if not empty (default: “”).
Implementations§
Source§impl SynthesizeScrollGestureParams
impl SynthesizeScrollGestureParams
pub fn builder() -> SynthesizeScrollGestureParamsBuilder
Source§impl SynthesizeScrollGestureParams
impl SynthesizeScrollGestureParams
pub const IDENTIFIER: &'static str = "Input.synthesizeScrollGesture"
Trait Implementations§
Source§impl Clone for SynthesizeScrollGestureParams
impl Clone for SynthesizeScrollGestureParams
Source§fn clone(&self) -> SynthesizeScrollGestureParams
fn clone(&self) -> SynthesizeScrollGestureParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'de> Deserialize<'de> for SynthesizeScrollGestureParams
impl<'de> Deserialize<'de> for SynthesizeScrollGestureParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SynthesizeScrollGestureParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SynthesizeScrollGestureParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Method for SynthesizeScrollGestureParams
impl Method for SynthesizeScrollGestureParams
Source§fn identifier(&self) -> Cow<'static, str>
fn identifier(&self) -> Cow<'static, str>
DOM.removeNode
Source§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
DOM
Source§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
removeNode
Source§impl PartialEq for SynthesizeScrollGestureParams
impl PartialEq for SynthesizeScrollGestureParams
Source§fn eq(&self, other: &SynthesizeScrollGestureParams) -> bool
fn eq(&self, other: &SynthesizeScrollGestureParams) -> bool
self
and other
values to be equal, and is used by ==
.Source§impl Serialize for SynthesizeScrollGestureParams
impl Serialize for SynthesizeScrollGestureParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for SynthesizeScrollGestureParams
Auto Trait Implementations§
impl Freeze for SynthesizeScrollGestureParams
impl RefUnwindSafe for SynthesizeScrollGestureParams
impl Send for SynthesizeScrollGestureParams
impl Sync for SynthesizeScrollGestureParams
impl Unpin for SynthesizeScrollGestureParams
impl UnwindSafe for SynthesizeScrollGestureParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more