|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|