2.2 KiB
2.2 KiB
Home > puppeteer > Protocol > Input > EmulateTouchFromMouseEventRequest
Protocol.Input.EmulateTouchFromMouseEventRequest interface
Signature:
export interface EmulateTouchFromMouseEventRequest
Properties
Property | Type | Description |
---|---|---|
button | MouseButton | Mouse button. Only "none", "left", "right" are supported. |
clickCount | integer | Number of times the mouse button was clicked (default: 0). |
deltaX | number | X delta in DIP for mouse wheel event (default: 0). |
deltaY | number | Y delta in DIP for mouse wheel event (default: 0). |
modifiers | integer | Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0). |
timestamp | TimeSinceEpoch | Time at which the event occurred (default: current time). |
type | ('mousePressed' | 'mouseReleased' | 'mouseMoved' | 'mouseWheel') | Type of the mouse event. |
x | integer | X coordinate of the mouse pointer in DIP. |
y | integer | Y coordinate of the mouse pointer in DIP. |