Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
32
function getScrollContainer(): HTMLElement | null {
33
return document.querySelector(
'main'
);
34
}
35
36
function saveScrollPosition() {
37
let scrollContainer = getScrollContainer();
Callers
3
saveScrollPosition
Function · 0.85
restoreScrollPosition
Function · 0.85
navigate
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected