Merge pull request #1491 from hunicus/docs-scrolling
Apply smooth scrolling to docs only
This commit is contained in:
2 files changed
+5
-1
No files matched your search
@@ -23,5 +23,10 @@ export class DocsComponent implements OnInit {
|
||||
this.activeTab = ( url[2].path === "rest" ) ? 0 : 1;
|
||||
this.env = this.stateService.env;
|
||||
this.showWebSocketTab = ( ! ( ( this.env.BASE_MODULE === "bisq" ) || ( this.stateService.network === "bisq" ) || ( this.stateService.network === "liquidtestnet" ) ) );
|
||||
document.querySelector<HTMLElement>( "html" ).style.scrollBehavior = "smooth";
|
||||
}
|
||||
|
||||
ngOnDestroy(): void {
|
||||
document.querySelector<HTMLElement>( "html" ).style.scrollBehavior = "auto";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user