InputClientSynthesizePinchGestureAsync Method |
Version 88.2.90
Synthesizes a pinch gesture over a time period by issuing appropriate touch events.
Namespace:
CefSharp.DevTools.Input
Assembly:
CefSharp (in CefSharp.dll) Version: 88.2.90.0 (88.2.90.0)
Syntax public Task<DevToolsMethodResponse> SynthesizePinchGestureAsync(
long x,
long y,
long scaleFactor,
Nullable<int> relativeSpeed = null,
Nullable<GestureSourceType> gestureSourceType = null
)
public:
Task<DevToolsMethodResponse^>^ SynthesizePinchGestureAsync(
long long x,
long long y,
long long scaleFactor,
Nullable<int> relativeSpeed = nullptr,
Nullable<GestureSourceType> gestureSourceType = 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. - scaleFactor
- Type: SystemInt64
Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out). - relativeSpeed (Optional)
- Type: SystemNullableInt32
Relative pointer 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).
Return Value
Type:
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also