Skip to main content
Module

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

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

Properties

x: number

X coordinate of the start of the gesture in CSS pixels.

y: number

Y coordinate of the start of the gesture in CSS pixels.

optional
xDistance: number

The distance to scroll along the X axis (positive to scroll left).

optional
yDistance: number

The distance to scroll along the Y axis (positive to scroll up).

optional
xOverscroll: number

The number of additional pixels to scroll back along the X axis, in addition to the given distance.

optional
yOverscroll: number

The number of additional pixels to scroll back along the Y axis, in addition to the given distance.

optional
preventFling: boolean

Prevent fling (default: true).

optional
speed: integer

Swipe speed in pixels per second (default: 800).

optional
gestureSourceType: GestureSourceType

Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type).

optional
repeatCount: integer

The number of times to repeat the gesture (default: 0).

optional
repeatDelayMs: integer

The number of milliseconds delay between each repeat. (default: 250).

optional
interactionMarkerName: string

The name of the interaction markers to generate, if not empty (default: "").