InputClient.SynthesizeScrollGestureAsync Method |
Version 96.0.142
Synthesizes a scroll gesture over a time period by issuing appropriate touch events.
Namespace:
CefSharp.DevTools.Input
Assembly:
CefSharp (in CefSharp.dll) Version: 96.0.142.0 (96.0.142.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: System.Double
X coordinate of the start of the gesture in CSS pixels. - y
- Type: System.Double
Y coordinate of the start of the gesture in CSS pixels. - xDistance (Optional)
- Type: System.Nullable<Double>
The distance to scroll along the X axis (positive to scroll left). - yDistance (Optional)
- Type: System.Nullable<Double>
The distance to scroll along the Y axis (positive to scroll up). - xOverscroll (Optional)
- Type: System.Nullable<Double>
The number of additional pixels to scroll back along the X axis, in addition to the givendistance. - yOverscroll (Optional)
- Type: System.Nullable<Double>
The number of additional pixels to scroll back along the Y axis, in addition to the givendistance. - preventFling (Optional)
- Type: System.Nullable<Boolean>
Prevent fling (default: true). - speed (Optional)
- Type: System.Nullable<Int32>
Swipe speed in pixels per second (default: 800). - gestureSourceType (Optional)
- Type: System.Nullable<GestureSourceType>
Which type of input events to be generated (default: 'default', which queries the platformfor the preferred input type). - repeatCount (Optional)
- Type: System.Nullable<Int32>
The number of times to repeat the gesture (default: 0). - repeatDelayMs (Optional)
- Type: System.Nullable<Int32>
The number of milliseconds delay between each repeat. (default: 250). - interactionMarkerName (Optional)
- Type: System.String
The name of the interaction markers to generate, if not empty (default: "").
Return Value
Type:
Task<DevToolsMethodResponse>returns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also