Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface default.LayerTree.ScrollRect
import { type default } from "https://deno.land/x/pptr@1.2.0/vendor/devtools-protocol/protocol.d.ts";
const { ScrollRect } = default.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)