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

Properties

type: (
| "dragEnter"
| "dragOver"
| "drop"
| "dragCancel"
)

Type of the drag event. (DispatchDragEventRequestType enum)

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.

data: DragData
optional
modifiers: integer

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