Skip to content

Commit 47b115b

Browse files
committed
fix: apply changes from other branch
1 parent 9846503 commit 47b115b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/angular/src/providers/nav-controller.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ export class NavController {
3939
if (ev instanceof NavigationStart) {
4040
// restoredState is set if the browser back/forward button is used
4141
const id = ev.restoredState ? ev.restoredState.navigationId : ev.id;
42-
this.guessDirection = id < this.lastNavId ? 'back' : 'forward';
43-
this.guessAnimation = this.guessDirection;
44-
this.lastNavId = id;
42+
this.guessAnimation = this.guessDirection = id < this.lastNavId ? 'back' : 'forward';
43+
this.lastNavId = this.guessDirection === 'forward' ? ev.id : id;
44+
4545
}
4646
});
4747
}

0 commit comments

Comments
 (0)