Home
last modified time | relevance | path

Searched refs:upperThreshold (Results 1 – 2 of 2) sorted by relevance

/expo/docs/ui/components/Layout/
H A DuseAutoScrollTo.ts22 const upperThreshold = bounds.height * UPPER_THRESHOLD; constant
25 if (targetPosition < position + upperThreshold) {
26 ref.current.scrollTo({ top: Math.max(0, targetPosition - upperThreshold) });
/expo/docs/components/
H A DDocumentationSidebarRight.tsx150 const upperThreshold = window.innerHeight * UPPER_SCROLL_LIMIT_FACTOR;
153 if (activeItemPos < scrollTop + upperThreshold) {
154 selfScroll.scrollTo({ behavior: 'auto', top: Math.max(0, activeItemPos - upperThreshold) });