Click or drag to resize

InputClientSynthesizeScrollGestureAsync Method

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

Namespace:  CefSharp.DevTools.Input
Assembly:  CefSharp (in CefSharp.dll) Version: 111.2.70.0 (111.2.70.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
)

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: TaskDevToolsMethodResponse
returns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also