Fix scrolling with hash in url
[oweals/peertube.git] / client / src / app / app.component.ts
index c77dc97deb2b78c685034a8ea16384dd7f262806..5541f555822d2fcf4ea495ac632959c42e48106b 100644 (file)
@@ -123,6 +123,7 @@ export class AppComponent implements OnInit, AfterViewInit {
     const scrollEvent = eventsObs.pipe(filter((e: Event): e is Scroll => e instanceof Scroll))
 
     scrollEvent.subscribe(e => {
+      console.log(e)
       if (e.position) {
         return this.viewportScroller.scrollToPosition(e.position)
       }