@ionic/angular 7.5.1-dev.11697212309.1448948d → 7.5.1-dev.11697219113.17f86185
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.
|
@@ -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
|
|
792
791
|
const id = ev.restoredState ? ev.restoredState.navigationId : ev.id;
|
|
793
|
-
this.guessDirection =
|
|
792
|
+
this.guessDirection = id < this.lastNavId ? 'back' : 'forward';
|
|
793
|
+
this.guessAnimation = !ev.restoredState ? this.guessDirection : undefined;
|
|
794
794
|
this.lastNavId = this.guessDirection === 'forward' ? ev.id : id;
|
|
795
795
|
}
|
|
796
796
|
});
|