Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jun 13, 2016

Conversation

danbucholtz
Copy link
Contributor

The PR adds 700ms of padding to the duration if the keyboard is open. Typically on iOS, it takes about ~550ms of time to close the keyboard on my iPhone 6S. Once the transition is complete, the click block is disabled per the existing app logic. Basically, this has minimal to none effect on Android. On iOS, where it takes a bit to dismiss the keyboard, this prevents another transition from happening until the transition is complete, which will take ~550ms longer than usual when the keyboard is open.

keep the click block up longer if the keyboard is open

closes  #6540
@@ -1178,7 +1178,12 @@ export class NavController extends Ion {
transAnimation.duration(0);
}

let duration = transAnimation.getDuration();
let KEYBOARD_DURATION_PADDING = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename KEYBOARD_DURATION_PADDING to keyboardDurationPadding

…adding

changed formatting, reduced keyboard duration padding
@danbucholtz danbucholtz merged commit d6b7d5d into 2.0 Jun 13, 2016
@danbucholtz danbucholtz deleted the feature/keyboard-open-delay branch June 14, 2016 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants