Skip to content

Commit

Permalink
fix: apply changes from other branch
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-stsm committed Oct 31, 2023
1 parent 7c23f9a commit c8370d9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/angular/common/src/providers/nav-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ export class NavController {
if (ev instanceof NavigationStart) {
// restoredState is set if the browser back/forward button is used
const id = ev.restoredState ? ev.restoredState.navigationId : ev.id;
this.guessDirection = id < this.lastNavId ? 'back' : 'forward';
this.guessAnimation = this.guessDirection;
this.lastNavId = id;
this.guessAnimation = this.guessDirection = id < this.lastNavId ? 'back' : 'forward';
this.lastNavId = this.guessDirection === 'forward' ? ev.id : id;
}
});
}
Expand Down

0 comments on commit c8370d9

Please sign in to comment.