From dd45a675378bcd10f12c81603dcf920fb3a4b340 Mon Sep 17 00:00:00 2001 From: Harvey Kandola Date: Thu, 14 Dec 2017 16:50:30 +0000 Subject: [PATCH] fixed bug with initial jump to page scrolling --- gui/app/components/document/document-toc.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/app/components/document/document-toc.js b/gui/app/components/document/document-toc.js index 3fb10a29..8ca77222 100644 --- a/gui/app/components/document/document-toc.js +++ b/gui/app/components/document/document-toc.js @@ -39,9 +39,9 @@ export default Component.extend(NotifierMixin, { this.set('showToc', is.not.undefined(this.get('pages')) && this.get('pages').get('length') > 0); - if (is.not.null(this.get('currentPageId'))) { - this.send('onEntryClick', this.get('currentPageId')); - } + // if (is.not.null(this.get('currentPageId'))) { + // this.send('onEntryClick', this.get('currentPageId')); + // } this.setState(this.get('currentPageId')); },