Set offset

This commit is contained in:
dominik-zeglen 2019-10-15 14:12:38 +02:00
parent ae14076ceb
commit 1a58d4ab80

View file

@ -128,7 +128,7 @@ const SingleAutocompleteSelectFieldContent: React.FC<
const scrollPosition = useElementScroll(anchor);
const [calledForMore, setCalledForMore] = React.useState(false);
const scrolledToBottom = isScrolledToBottom(anchor, scrollPosition, 50);
const scrolledToBottom = isScrolledToBottom(anchor, scrollPosition, offset);
React.useEffect(() => {
if (!calledForMore && onFetchMore && scrolledToBottom) {