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

x/pptr/src/Input.ts>Touchscreen

Headless Chrome Deno API
Latest
class Touchscreen
import { Touchscreen } from "https://deno.land/x/pptr@1.2.0/src/Input.ts";

The Touchscreen class exposes touchscreen events.

Constructors

new
Touchscreen(client: CDPSession, keyboard: Keyboard)

Properties

private
_client: CDPSession
private
_keyboard: Keyboard

Methods

tap(x: number, y: number): Promise<void>

Dispatches a touchstart and touchend event.