We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e621c94 commit d565783Copy full SHA for d565783
src/apps/talent-search/src/routes/search-results-page/SearchResultsPage.tsx
@@ -35,9 +35,9 @@ const SearchResultsPage: FC = () => {
35
const scrollY = window.scrollY
36
const visibleHeight = window.innerHeight
37
const fullHeight = document.body.scrollHeight
38
-
39
- // negating 763px since footer occupies at least 600px
40
- if (scrollY + visibleHeight >= fullHeight - 763) {
+ const footerElem = document.getElementById("footer-nav-el");
+ const footerHeight = footerElem && footerElem.offsetHeight || 650;
+ if (scrollY + visibleHeight >= fullHeight - footerHeight + 100) {
41
// Scroll near bottom
42
setCurrentPage(prev => {
43
const maxPages = Math.ceil(matches.length / itemsPerPage)
0 commit comments