puppeteer/new-docs/puppeteer.protocol.input.dispatchtoucheventrequest.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

1.6 KiB

Home > puppeteer > Protocol > Input > DispatchTouchEventRequest

Protocol.Input.DispatchTouchEventRequest interface

Signature:

export interface DispatchTouchEventRequest 

Properties

Property Type Description
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.
touchPoints TouchPoint[] Active touch points on the touch device. One event per any changed point (compared to previous touch event in a sequence) is generated, emulating pressing/moving/releasing points one by one.
type ('touchStart' | 'touchEnd' | 'touchMove' | 'touchCancel') Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while TouchStart and TouchMove must contains at least one. (DispatchTouchEventRequestType enum)