Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface default.Input.EmulateTouchFromMouseEventRequest
import { type default } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
const { EmulateTouchFromMouseEventRequest } = default.Input;

Properties

type: (
| "mousePressed"
| "mouseReleased"
| "mouseMoved"
| "mouseWheel"
)

Type of the mouse event. (EmulateTouchFromMouseEventRequestType enum)

X coordinate of the mouse pointer in DIP.

Y coordinate of the mouse pointer in DIP.

button: MouseButton

Mouse button. Only "none", "left", "right" are supported.

optional
timestamp: TimeSinceEpoch

Time at which the event occurred (default: current time).

optional
deltaX: number

X delta in DIP for mouse wheel event (default: 0).

optional
deltaY: number

Y delta in DIP for mouse wheel event (default: 0).

optional
modifiers: integer

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

optional
clickCount: integer

Number of times the mouse button was clicked (default: 0).