diff --git a/lib/services/menu.service.ts b/lib/services/menu.service.ts index 5fc136c8..606de35e 100644 --- a/lib/services/menu.service.ts +++ b/lib/services/menu.service.ts @@ -45,10 +45,10 @@ export class MenuService { if (!this.tasks.empty) { this.tasks.start(this.activeCatIdx, this.activeMethodIdx); this.scrollService.setStickElement(this.getCurrentMethodEl()); - this.scrollToActive(); + if (hash) this.scrollToActive(); this.appState.stopLoading(); } else { - this.scrollToActive(); + if (hash) this.scrollToActive(); } }); }