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

Rectangle where scrolling happens on the main thread.

Properties

rect: DOM.Rect

Rectangle itself.

type: ("RepaintsOnScroll" | "TouchEventHandler" | "WheelEventHandler")

Reason for rectangle to force scrolling on the main thread (ScrollRectType enum)