Skip to content

Commit

Permalink
fix(navigation): keep the click block up longer if the keyboard is op…
Browse files Browse the repository at this point in the history
…en (#6884)

* fix(navigation): keep the click block up longer if the keyboard is open

keep the click block up longer if the keyboard is open

closes  #6540

* refactor(navigation): changed formatting, reduced keyboard duration padding

changed formatting, reduced keyboard duration padding
  • Loading branch information
danbucholtz authored Jun 13, 2016
1 parent db9fa7e commit d6b7d5d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/nav/nav-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,12 @@ export class NavController extends Ion {
transAnimation.duration(0);
}

let duration = transAnimation.getDuration();
let keyboardDurationPadding = 0;
if ( this._keyboard.isOpen() ) {
// add XXms to the duration the app is disabled when the keyboard is open
keyboardDurationPadding = 600;
}
let duration = transAnimation.getDuration() + keyboardDurationPadding;
let enableApp = (duration < 64);
// block any clicks during the transition and provide a
// fallback to remove the clickblock if something goes wrong
Expand Down

0 comments on commit d6b7d5d

Please sign in to comment.