Skip to content

Commit

Permalink
update margin for flag div to load more
Browse files Browse the repository at this point in the history
  • Loading branch information
ntqdinh-axonivy committed Jul 30, 2024
1 parent 620a6f5 commit 9b8d119
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export class ProductComponent implements AfterViewInit, OnDestroy {
}

setupIntersectionObserver() {
const options = { root: null, rootMargin: '0px', threshold: 0.1 };
const options = { root: null, rootMargin: '10px', threshold: 0.1 };
const observer = new IntersectionObserver(entries => {
entries.forEach(entry => {
if (entry.isIntersecting && this.hasMore()) {
Expand Down

0 comments on commit 9b8d119

Please sign in to comment.