Fix autoload People/Spaces on scroll down (#5321)

This commit is contained in:
Yuriy Bakhtin 2021-09-30 16:50:36 +03:00 committed by GitHub
parent 7b2109e154
commit d1ac039729
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ humhub.module('directory', function(module, require, $) {
if (entries.length && entries[0].isIntersecting) {
loadMore($directoryEndIndicator);
}
});
}, {rootMargin: '1px'});
observer.observe($directoryEndIndicator[0]);
}