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

22 lines
874 B
Markdown

<!-- 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; [LayerTree](./puppeteer.protocol.layertree.md) &gt; [ScrollRect](./puppeteer.protocol.layertree.scrollrect.md)
## Protocol.LayerTree.ScrollRect interface
Rectangle where scrolling happens on the main thread.
<b>Signature:</b>
```typescript
export interface ScrollRect
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [rect](./puppeteer.protocol.layertree.scrollrect.rect.md) | [DOM.Rect](./puppeteer.protocol.dom.rect.md) | Rectangle itself. |
| [type](./puppeteer.protocol.layertree.scrollrect.type.md) | ('RepaintsOnScroll' \| 'TouchEventHandler' \| 'WheelEventHandler') | Reason for rectangle to force scrolling on the main thread |