mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
e89e264a16
This corresponds to Chromium 85.0.4182.0. This roll includes: - Enable SameSiteByDefaultCookies and CookiesWithoutSameSiteMustBeSecure https://crrev.com/c/2231445 - [FlexNG] Enable FlexNG by default https://crrev.com/c/2216595 Closes #6151.
2.6 KiB
2.6 KiB
Home > puppeteer > Protocol > Input > DispatchMouseEventRequest
Protocol.Input.DispatchMouseEventRequest interface
Signature:
export interface DispatchMouseEventRequest
Properties
Property | Type | Description |
---|---|---|
button | MouseButton | Mouse button (default: "none"). |
buttons | integer | A number indicating which buttons are pressed on the mouse when a mouse event is triggered. Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0. |
clickCount | integer | Number of times the mouse button was clicked (default: 0). |
deltaX | number | X delta in CSS pixels for mouse wheel event (default: 0). |
deltaY | number | Y delta in CSS pixels 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). |
pointerType | ('mouse' | 'pen') | Pointer type (default: "mouse"). (DispatchMouseEventRequestPointerType enum) |
timestamp | TimeSinceEpoch | Time at which the event occurred. |
type | ('mousePressed' | 'mouseReleased' | 'mouseMoved' | 'mouseWheel') | Type of the mouse event. (DispatchMouseEventRequestType enum) |
x | number | X coordinate of the event relative to the main frame's viewport in CSS pixels. |
y | number | Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport. |