Click or drag to resize

InputSynthesizeScrollGestureAsync Method

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

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

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