Skip to content

Commit c8370d9

Browse files
committed
fix: apply changes from other branch
1 parent 7c23f9a commit c8370d9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

+2-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ 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;
4544
}
4645
});
4746
}

0 commit comments

Comments
 (0)