diff --git a/src/app/app.component.html b/src/app/app.component.html index aa331e09ed89df3e4e5049eaa2a392e6d8d06e35..5ed476324c6bde79bdb697cd0cbdc3559c9416b3 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,6 +1,6 @@ <div class="app-container"> <app-header></app-header> - <div (scroll)="onScrollDown($event)" class="app-body"> + <div class="app-body"> <router-outlet></router-outlet> <router-outlet name="print"></router-outlet> <app-footer></app-footer> diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 86273beab844acdfb875abef1bb5d8f8e198f206..18b020c871714621fe5a113e798f8d958c594bd1 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -5,7 +5,6 @@ import { AuthService } from './services/auth.service'; import { RouterListenerService } from './services/routerListener.service'; import { UpdateService } from './services/update.service'; import { PrintService } from './shared/service/print.service'; -import { WindowScrollService } from './shared/service/windowScroll.service'; @Component({ selector: 'app-root', @@ -19,7 +18,6 @@ export class AppComponent implements OnInit { public printService: PrintService, private authService: AuthService, private profilService: ProfileService, - private windowScrollService: WindowScrollService, private routerListener: RouterListenerService, private updateService: UpdateService, private router: Router @@ -52,7 +50,4 @@ export class AppComponent implements OnInit { const vh = window.innerHeight * 0.01; document.documentElement.style.setProperty('--vh', `${vh}px`); } - public onScrollDown(event): void { - this.windowScrollService.scrollY.next(event); - } }