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

Function toNative

lib/virtualization.test.tsx:170–175  ·  view source on GitHub ↗
(offset: number)

Source from the content-addressed store, hash-verified

168 clientWidth: { value: 200 }
169 });
170 const toNative = (offset: number) =>
171 offsetType === "negative"
172 ? -offset
173 : offsetType === "positive-descending"
174 ? 4800 - offset
175 : offset;
176 act(() => {
177 element.scrollTo({ left: toNative(200) });
178 });

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected