@ionic/angular 7.5.1-dev.11697123035.1ee6b4a2 → 7.5.1-dev.11697212309.1448948d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/index.d.ts +1 -0
- package/esm2020/common/index.mjs +1 -1
- package/esm2020/common/providers/nav-controller.mjs +3 -3
- package/esm2020/common/types/ionic-lifecycle-hooks.mjs +5 -0
- package/esm2020/index.mjs +1 -3
- package/esm2020/standalone/index.mjs +1 -1
- package/fesm2015/ionic-angular-common.mjs +2 -2
- package/fesm2015/ionic-angular-common.mjs.map +1 -1
- package/fesm2015/ionic-angular.mjs.map +1 -1
- package/fesm2020/ionic-angular-common.mjs +2 -2
- package/fesm2020/ionic-angular-common.mjs.map +1 -1
- package/fesm2020/ionic-angular.mjs +0 -4
- package/fesm2020/ionic-angular.mjs.map +1 -1
- package/index.d.ts +1 -2
- package/package.json +2 -2
- package/standalone/index.d.ts +1 -1
- package/esm2020/types/ionic-lifecycle-hooks.mjs +0 -5
- /package/{types → common/types}/ionic-lifecycle-hooks.d.ts +0 -0
|
@@ -788,9 +788,9 @@ class NavController {
|
|
|
788
788
|
if (router) {
|
|
789
789
|
router.events.subscribe((ev) => {
|
|
790
790
|
if (ev instanceof NavigationStart) {
|
|
791
|
+
// restoredState is set if the browser back/forward button is used
|
|
791
792
|
const id = ev.restoredState ? ev.restoredState.navigationId : ev.id;
|
|
792
|
-
this.guessDirection = id < this.lastNavId ? 'back' : 'forward';
|
|
793
|
-
this.guessAnimation = !ev.restoredState ? this.guessDirection : undefined;
|
|
793
|
+
this.guessDirection = this.guessAnimation = id < this.lastNavId ? 'back' : 'forward';
|
|
794
794
|
this.lastNavId = this.guessDirection === 'forward' ? ev.id : id;
|
|
795
795
|
}
|
|
796
796
|
});
|