Skip to content

Commit

Permalink
fix(navigation): keep the click block up longer if the keyboard is open
Browse files Browse the repository at this point in the history
keep the click block up longer if the keyboard is open

closes  #6540
  • Loading branch information
danbucholtz committed Jun 13, 2016
1 parent 761a1f6 commit e20686c
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 @@ -1178,7 +1178,12 @@ export class NavController extends Ion {
transAnimation.duration(0);
}

let duration = transAnimation.getDuration();
let KEYBOARD_DURATION_PADDING = 0;
if ( this._keyboard.isOpen() ){
// add 700ms to the click block just to be sure the keyboard is closed
KEYBOARD_DURATION_PADDING = 700;
}
let duration = transAnimation.getDuration() + KEYBOARD_DURATION_PADDING;
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 e20686c

Please sign in to comment.