MCPcopy Create free account
hub / github.com/adobe/react-spectrum / getScrollContainer

Function getScrollContainer

packages/dev/s2-docs/src/client.tsx:32–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32function getScrollContainer(): HTMLElement | null {
33 return document.querySelector('main');
34}
35
36function saveScrollPosition() {
37 let scrollContainer = getScrollContainer();

Callers 3

saveScrollPositionFunction · 0.85
restoreScrollPositionFunction · 0.85
navigateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected