InputClientSynthesizeScrollGestureAsync Method |
Version 106.0.290
Synthesizes a scroll gesture over a time period by issuing appropriate touch events.
Namespace:
CefSharp.DevTools.Input
Assembly:
CefSharp (in CefSharp.dll) Version: 106.0.290.0 (106.0.290.0)
Syntax public Task<DevToolsMethodResponse> SynthesizeScrollGestureAsync(
double x,
double y,
double? xDistance = null,
double? yDistance = null,
double? xOverscroll = null,
double? yOverscroll = null,
bool? preventFling = null,
int? speed = null,
GestureSourceType? gestureSourceType = null,
int? repeatCount = null,
int? repeatDelayMs = null,
string interactionMarkerName = null
)
public:
Task<DevToolsMethodResponse^>^ SynthesizeScrollGestureAsync(
double x,
double y,
Nullable<double> xDistance = nullptr,
Nullable<double> yDistance = nullptr,
Nullable<double> xOverscroll = nullptr,
Nullable<double> 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: SystemDouble
X coordinate of the start of the gesture in CSS pixels. - y
- Type: SystemDouble
Y coordinate of the start of the gesture in CSS pixels. - xDistance (Optional)
- Type: SystemNullableDouble
The distance to scroll along the X axis (positive to scroll left). - yDistance (Optional)
- Type: SystemNullableDouble
The distance to scroll along the Y axis (positive to scroll up). - xOverscroll (Optional)
- Type: SystemNullableDouble
The number of additional pixels to scroll back along the X axis, in addition to the givendistance. - yOverscroll (Optional)
- Type: SystemNullableDouble
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