InputClientSynthesizePinchGestureAsync Method |
Version 130.1.90
Synthesizes a pinch gesture over a time period by issuing appropriate touch events.
Namespace: CefSharp.DevTools.InputAssembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax public Task<DevToolsMethodResponse> SynthesizePinchGestureAsync(
double x,
double y,
double scaleFactor,
int? relativeSpeed = null,
GestureSourceType? gestureSourceType = null
)
public:
Task<DevToolsMethodResponse^>^ SynthesizePinchGestureAsync(
double x,
double y,
double scaleFactor,
Nullable<int> relativeSpeed = nullptr,
Nullable<GestureSourceType> gestureSourceType = nullptr
)
Parameters
- x Double
- X coordinate of the start of the gesture in CSS pixels.
- y Double
- Y coordinate of the start of the gesture in CSS pixels.
- scaleFactor Double
- Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out).
- relativeSpeed NullableInt32 (Optional)
- Relative pointer speed in pixels per second (default: 800).
- gestureSourceType NullableGestureSourceType (Optional)
- Which type of input events to be generated (default: 'default', which queries the platformfor the preferred input type).
Return Value
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also