MCPcopy Index your code
hub / github.com/anomalyco/opencode / scrollRoot

Function scrollRoot

packages/session-ui/src/pierre/virtualizer.ts:26–33  ·  view source on GitHub ↗
(container: HTMLElement)

Source from the content-addressed store, hash-verified

24}
25
26function scrollRoot(container: HTMLElement) {
27 let node = container.parentElement
28 while (node) {
29 const style = getComputedStyle(node)
30 if (scrollable(style.overflowY)) return node
31 node = node.parentElement
32 }
33}
34
35function target(container: HTMLElement): Target | undefined {
36 if (typeof document === "undefined") return

Callers 1

targetFunction · 0.85

Calls 1

scrollableFunction · 0.85

Tested by

no test coverage detected