MCPcopy Create free account
hub / github.com/bvaughn/react-window / scrollTargetTo

Function scrollTargetTo

lib/utils/scrollElement.ts:54–61  ·  view source on GitHub ↗
(
  target: ScrollTarget | null,
  options: ScrollToOptions
)

Source from the content-addressed store, hash-verified

52}
53
54export function scrollTargetTo(
55 target: ScrollTarget | null,
56 options: ScrollToOptions
57) {
58 if (target && typeof target.scrollTo === "function") {
59 target.scrollTo(options);
60 }
61}
62
63/**
64 * Whether the container scrolls its own content along this axis

Callers 3

scrollToCellFunction · 0.90
scrollToColumnFunction · 0.90
scrollToRowFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected