Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pptr/mod.ts>Protocol.Input.TouchPoint

Headless Chrome Deno API
Latest
interface Protocol.Input.TouchPoint
import { type Protocol } from "https://deno.land/x/pptr@1.2.0/mod.ts";
const { TouchPoint } = Protocol.Input;

Properties

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.

optional
radiusX: number

X radius of the touch area (default: 1.0).

optional
radiusY: number

Y radius of the touch area (default: 1.0).

optional
rotationAngle: number

Rotation angle (default: 0.0).

optional
force: number

Force (default: 1.0).

optional
id: number

Identifier used to track touch sources between events, must be unique within an event.