mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(angular): disable transition heuristics by default
This commit is contained in:
committed by
Manu MA
parent
4c525fd9f7
commit
d9172b7d68
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user