mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
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:
@@ -33,7 +33,7 @@ var NavigationController = (function () {
|
||||
if (this.inPageIndex > -1 && !inPage) {
|
||||
// Navigated to a new page, clear in-page mark.
|
||||
this.inPageIndex = -1
|
||||
} else if (this.inPageIndex === -1 && inPage) {
|
||||
} else if (this.inPageIndex === -1 && inPage && !replaceEntry) {
|
||||
// Started in-page navigations.
|
||||
this.inPageIndex = this.currentIndex
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user