diff options
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r-- | client/src/app/app.component.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index edec3216e..da51040ad 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts | |||
@@ -121,7 +121,7 @@ export class AppComponent implements OnInit, AfterViewInit { | |||
121 | // scrollToAnchor first to preserve anchor position when using history navigation | 121 | // scrollToAnchor first to preserve anchor position when using history navigation |
122 | if (e.anchor) { | 122 | if (e.anchor) { |
123 | setTimeout(() => { | 123 | setTimeout(() => { |
124 | document.getElementById(e.anchor).scrollIntoView({ behavior: 'smooth', inline: 'nearest' }) | 124 | this.viewportScroller.scrollToAnchor(e.anchor) |
125 | }) | 125 | }) |
126 | 126 | ||
127 | return | 127 | return |