Don't initial scroll if hash is empty

This commit is contained in:
Roman Hotsiy 2016-11-24 15:47:14 +02:00
parent 0f580eeed0
commit 4f79d4950a
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -45,10 +45,10 @@ export class MenuService {
if (!this.tasks.empty) { if (!this.tasks.empty) {
this.tasks.start(this.activeCatIdx, this.activeMethodIdx); this.tasks.start(this.activeCatIdx, this.activeMethodIdx);
this.scrollService.setStickElement(this.getCurrentMethodEl()); this.scrollService.setStickElement(this.getCurrentMethodEl());
this.scrollToActive(); if (hash) this.scrollToActive();
this.appState.stopLoading(); this.appState.stopLoading();
} else { } else {
this.scrollToActive(); if (hash) this.scrollToActive();
} }
}); });
} }