]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/app.component.ts
Translated using Weblate (Swedish)
[github/Chocobozzz/PeerTube.git] / client / src / app / app.component.ts
index edec3216e83d158b30a0feed45bc3d5fc06cc47a..da51040ad649a10adbf110700aeb7344bdd194d1 100644 (file)
@@ -121,7 +121,7 @@ export class AppComponent implements OnInit, AfterViewInit {
       // scrollToAnchor first to preserve anchor position when using history navigation
       if (e.anchor) {
         setTimeout(() => {
-          document.getElementById(e.anchor).scrollIntoView({ behavior: 'smooth', inline: 'nearest' })
+          this.viewportScroller.scrollToAnchor(e.anchor)
         })
 
         return