@ionic/angular 7.4.4-dev.11696537016.1e5ce7a3 → 7.4.4-dev.11696545130.1171e7a9
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.
|
@@ -2619,7 +2619,8 @@ class NavController {
|
|
|
2619
2619
|
router.events.subscribe((ev) => {
|
|
2620
2620
|
if (ev instanceof NavigationStart) {
|
|
2621
2621
|
const id = ev.restoredState ? ev.restoredState.navigationId : ev.id;
|
|
2622
|
-
this.
|
|
2622
|
+
this.guessDirection = id < this.lastNavId ? 'back' : 'forward';
|
|
2623
|
+
this.guessAnimation = !ev.restoredState ? this.guessDirection : undefined;
|
|
2623
2624
|
this.lastNavId = this.guessDirection === 'forward' ? ev.id : id;
|
|
2624
2625
|
}
|
|
2625
2626
|
});
|