Fix navigation controller

In-page navigation has not actually started if the current entry is
being replaced. Do not set inPageIndex if replaceEntry is true.
This commit is contained in:
Brian Suh 2016-09-11 14:46:17 -07:00
parent 01fa9827b4
commit 5fc1f57fb5

View file

@ -33,7 +33,7 @@ var NavigationController = (function () {
if (this.inPageIndex > -1 && !inPage) { if (this.inPageIndex > -1 && !inPage) {
// Navigated to a new page, clear in-page mark. // Navigated to a new page, clear in-page mark.
this.inPageIndex = -1 this.inPageIndex = -1
} else if (this.inPageIndex === -1 && inPage) { } else if (this.inPageIndex === -1 && inPage && !replaceEntry) {
// Started in-page navigations. // Started in-page navigations.
this.inPageIndex = this.currentIndex this.inPageIndex = this.currentIndex
} }