mirror of
https://github.com/mempool/mempool.git
synced 2024-12-26 00:04:25 +01:00
Merge pull request #1870 from hunicus/fix-anchors-chrome
Fix anchor link scrolling on load (chrome)
This commit is contained in:
commit
99fcca3cb7
@ -35,6 +35,7 @@ export class ApiDocsComponent implements OnInit {
|
||||
setTimeout( () => {
|
||||
if( this.route.snapshot.fragment ) {
|
||||
this.openEndpointContainer( this.route.snapshot.fragment );
|
||||
document.getElementById( this.route.snapshot.fragment ).scrollIntoView();
|
||||
}
|
||||
window.addEventListener('scroll', function() {
|
||||
that.desktopDocsNavPosition = ( window.pageYOffset > 182 ) ? "fixed" : "relative";
|
||||
|
Loading…
Reference in New Issue
Block a user