From ab302e040f489ebc7b80f32365f11f4274f9ac2b Mon Sep 17 00:00:00 2001 From: Alex Martzios Date: Tue, 1 Nov 2022 13:27:21 +0200 Subject: [PATCH] remove options from footer observer --- explore/src/app/app.component.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/explore/src/app/app.component.ts b/explore/src/app/app.component.ts index f46da4f7..8b3323d9 100644 --- a/explore/src/app/app.component.ts +++ b/explore/src/app/app.component.ts @@ -135,11 +135,6 @@ export class AppComponent { } createObservers() { - let options = { - root: null, - rootMargin: '300px', - threshold: 1.0 - }; let intersectionObserver = new IntersectionObserver(entries => { entries.forEach(entry => { if (entry.isIntersecting && this.showQuickContact) { @@ -150,7 +145,7 @@ export class AppComponent { this.quickContactService.setDisplay(this.showQuickContact); } }); - }, options); + }); intersectionObserver.observe(this.bottom.nativeElement); this.subscriptions.push(intersectionObserver); }