puppeteer/new-docs/puppeteer.protocol.input.emulatetouchfrommouseeventrequest.md
Johan Bay e89e264a16
feat(chromium): roll Chromium to r782078 (#6250)
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.
2020-07-20 17:17:06 +02:00

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. (EmulateTouchFromMouseEventRequestType enum)
x integer X coordinate of the mouse pointer in DIP.
y integer Y coordinate of the mouse pointer in DIP.