From 4f79d4950a358d16f13b61dc7c30ebda477f3466 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Thu, 24 Nov 2016 15:47:14 +0200 Subject: [PATCH] Don't initial scroll if hash is empty --- lib/services/menu.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } }); }