Skip to main content
Module

x/puppeteer_plus/mod.ts>Protocol.Input.DispatchTouchEventRequest

Deno port of puppeteer base on latest TypeScript source.
Go to Latest
interface Protocol.Input.DispatchTouchEventRequest
import { type Protocol } from "https://deno.land/x/puppeteer_plus@0.14.0/mod.ts";
const { DispatchTouchEventRequest } = Protocol.Input;

Properties

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)

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.

optional
modifiers: integer

Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).

optional
timestamp: TimeSinceEpoch

Time at which the event occurred.