Click or drag to resize

InputClientEmulateTouchFromMouseEventAsync Method

Version 130.1.90
Emulates touch event from the mouse event parameters.

Namespace: CefSharp.DevTools.Input
Assembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax
public Task<DevToolsMethodResponse> EmulateTouchFromMouseEventAsync(
	EmulateTouchFromMouseEventType type,
	int x,
	int y,
	MouseButton button,
	double? timestamp = null,
	double? deltaX = null,
	double? deltaY = null,
	int? modifiers = null,
	int? clickCount = null
)

Parameters

type  EmulateTouchFromMouseEventType
Type of the mouse event.
x  Int32
X coordinate of the mouse pointer in DIP.
y  Int32
Y coordinate of the mouse pointer in DIP.
button  MouseButton
Mouse button. Only "none", "left", "right" are supported.
timestamp  NullableDouble  (Optional)
Time at which the event occurred (default: current time).
deltaX  NullableDouble  (Optional)
X delta in DIP for mouse wheel event (default: 0).
deltaY  NullableDouble  (Optional)
Y delta in DIP for mouse wheel event (default: 0).
modifiers  NullableInt32  (Optional)
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8(default: 0).
clickCount  NullableInt32  (Optional)
Number of times the mouse button was clicked (default: 0).

Return Value

TaskDevToolsMethodResponse
returns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also