fix(angular): disable transition heuristics by default

This commit is contained in:
Manu Mtz.-Almeida
2018-11-14 18:09:08 +01:00
committed by Manu MA
parent 4c525fd9f7
commit d9172b7d68
2 changed files with 5 additions and 5 deletions

View File

@@ -53,8 +53,8 @@ export class StackController {
startBackTransition() {
this.transition(
this.views[this.views.length - 2],
this.views[this.views.length - 1],
this.views[this.views.length - 2], // entering view
this.views[this.views.length - 1], // leaving view
-1,
true,
true,

View File

@@ -13,7 +13,7 @@ export const enum NavIntent {
@Injectable()
export class NavController {
private intent: NavIntent = NavIntent.Auto;
private intent: NavIntent = NavIntent.Root;
private animated = true;
private stack: string[] = [];
@@ -79,8 +79,8 @@ export class NavController {
animated = this.animated;
direction = intentToDirection(this.intent);
}
this.intent = NavIntent.Auto;
this.animated = true;
this.intent = NavIntent.Root;
this.animated = false;
return {
direction,