puppeteer/new-docs/puppeteer.protocol.input.synthesizescrollgesturerequest.md
2020-07-13 14:01:35 +01:00

2.7 KiB

Home > puppeteer > Protocol > Input > SynthesizeScrollGestureRequest

Protocol.Input.SynthesizeScrollGestureRequest interface

Signature:

export interface SynthesizeScrollGestureRequest 

Properties

Property Type Description
gestureSourceType GestureSourceType Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type).
interactionMarkerName string The name of the interaction markers to generate, if not empty (default: "").
preventFling boolean Prevent fling (default: true).
repeatCount integer The number of times to repeat the gesture (default: 0).
repeatDelayMs integer The number of milliseconds delay between each repeat. (default: 250).
speed integer Swipe speed in pixels per second (default: 800).
x number X coordinate of the start of the gesture in CSS pixels.
xDistance number The distance to scroll along the X axis (positive to scroll left).
xOverscroll number The number of additional pixels to scroll back along the X axis, in addition to the given distance.
y number Y coordinate of the start of the gesture in CSS pixels.
yDistance number The distance to scroll along the Y axis (positive to scroll up).
yOverscroll number The number of additional pixels to scroll back along the Y axis, in addition to the given distance.