puppeteer/new-docs/puppeteer.protocol.input.synthesizescrollgesturerequest.md

30 lines
2.7 KiB
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Protocol](./puppeteer.protocol.md) &gt; [Input](./puppeteer.protocol.input.md) &gt; [SynthesizeScrollGestureRequest](./puppeteer.protocol.input.synthesizescrollgesturerequest.md)
## Protocol.Input.SynthesizeScrollGestureRequest interface
<b>Signature:</b>
```typescript
export interface SynthesizeScrollGestureRequest
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [gestureSourceType](./puppeteer.protocol.input.synthesizescrollgesturerequest.gesturesourcetype.md) | [GestureSourceType](./puppeteer.protocol.input.gesturesourcetype.md) | Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type). |
| [interactionMarkerName](./puppeteer.protocol.input.synthesizescrollgesturerequest.interactionmarkername.md) | string | The name of the interaction markers to generate, if not empty (default: ""). |
| [preventFling](./puppeteer.protocol.input.synthesizescrollgesturerequest.preventfling.md) | boolean | Prevent fling (default: true). |
| [repeatCount](./puppeteer.protocol.input.synthesizescrollgesturerequest.repeatcount.md) | [integer](./puppeteer.protocol.integer.md) | The number of times to repeat the gesture (default: 0). |
| [repeatDelayMs](./puppeteer.protocol.input.synthesizescrollgesturerequest.repeatdelayms.md) | [integer](./puppeteer.protocol.integer.md) | The number of milliseconds delay between each repeat. (default: 250). |
| [speed](./puppeteer.protocol.input.synthesizescrollgesturerequest.speed.md) | [integer](./puppeteer.protocol.integer.md) | Swipe speed in pixels per second (default: 800). |
| [x](./puppeteer.protocol.input.synthesizescrollgesturerequest.x.md) | number | X coordinate of the start of the gesture in CSS pixels. |
| [xDistance](./puppeteer.protocol.input.synthesizescrollgesturerequest.xdistance.md) | number | The distance to scroll along the X axis (positive to scroll left). |
| [xOverscroll](./puppeteer.protocol.input.synthesizescrollgesturerequest.xoverscroll.md) | number | The number of additional pixels to scroll back along the X axis, in addition to the given distance. |
| [y](./puppeteer.protocol.input.synthesizescrollgesturerequest.y.md) | number | Y coordinate of the start of the gesture in CSS pixels. |
| [yDistance](./puppeteer.protocol.input.synthesizescrollgesturerequest.ydistance.md) | number | The distance to scroll along the Y axis (positive to scroll up). |
| [yOverscroll](./puppeteer.protocol.input.synthesizescrollgesturerequest.yoverscroll.md) | number | The number of additional pixels to scroll back along the Y axis, in addition to the given distance. |