Searched refs:upperThreshold (Results 1 – 2 of 2) sorted by relevance
22 const upperThreshold = bounds.height * UPPER_THRESHOLD; constant25 if (targetPosition < position + upperThreshold) {26 ref.current.scrollTo({ top: Math.max(0, targetPosition - upperThreshold) });
150 const upperThreshold = window.innerHeight * UPPER_SCROLL_LIMIT_FACTOR;153 if (activeItemPos < scrollTop + upperThreshold) {154 selfScroll.scrollTo({ behavior: 'auto', top: Math.max(0, activeItemPos - upperThreshold) });