Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface Protocol.LayerTree.ScrollRect
import { type Protocol } from "https://deno.land/x/pptr@1.2.0/mod.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)