InputClientSynthesizeScrollGestureAsync Method |
Version 89.0.170
Synthesizes a scroll gesture over a time period by issuing appropriate touch events.
Namespace:
CefSharp.DevTools.Input
Assembly:
CefSharp (in CefSharp.dll) Version: 89.0.170.0 (89.0.170.0)
Syntax public Task<DevToolsMethodResponse> SynthesizeScrollGestureAsync(
long x,
long y,
Nullable<long> xDistance = null,
Nullable<long> yDistance = null,
Nullable<long> xOverscroll = null,
Nullable<long> yOverscroll = null,
Nullable<bool> preventFling = null,
Nullable<int> speed = null,
Nullable<GestureSourceType> gestureSourceType = null,
Nullable<int> repeatCount = null,
Nullable<int> repeatDelayMs = null,
string interactionMarkerName = null
)
public:
Task<DevToolsMethodResponse^>^ SynthesizeScrollGestureAsync(
long long x,
long long y,
Nullable<long long> xDistance = nullptr,
Nullable<long long> yDistance = nullptr,
Nullable<long long> xOverscroll = nullptr,
Nullable<long long> yOverscroll = nullptr,
Nullable<bool> preventFling = nullptr,
Nullable<int> speed = nullptr,
Nullable<GestureSourceType> gestureSourceType = nullptr,
Nullable<int> repeatCount = nullptr,
Nullable<int> repeatDelayMs = nullptr,
String^ interactionMarkerName = nullptr
)
Parameters
- x
- Type: SystemInt64
X coordinate of the start of the gesture in CSS pixels. - y
- Type: SystemInt64
Y coordinate of the start of the gesture in CSS pixels. - xDistance (Optional)
- Type: SystemNullableInt64
The distance to scroll along the X axis (positive to scroll left). - yDistance (Optional)
- Type: SystemNullableInt64
The distance to scroll along the Y axis (positive to scroll up). - xOverscroll (Optional)
- Type: SystemNullableInt64
The number of additional pixels to scroll back along the X axis, in addition to the givendistance. - yOverscroll (Optional)
- Type: SystemNullableInt64
The number of additional pixels to scroll back along the Y axis, in addition to the givendistance. - preventFling (Optional)
- Type: SystemNullableBoolean
Prevent fling (default: true). - speed (Optional)
- Type: SystemNullableInt32
Swipe speed in pixels per second (default: 800). - gestureSourceType (Optional)
- Type: SystemNullableGestureSourceType
Which type of input events to be generated (default: 'default', which queries the platformfor the preferred input type). - repeatCount (Optional)
- Type: SystemNullableInt32
The number of times to repeat the gesture (default: 0). - repeatDelayMs (Optional)
- Type: SystemNullableInt32
The number of milliseconds delay between each repeat. (default: 250). - interactionMarkerName (Optional)
- Type: SystemString
The name of the interaction markers to generate, if not empty (default: "").
Return Value
Type:
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also