From d6b7d5dd9b2732a64df5027ce8cc138f14cca804 Mon Sep 17 00:00:00 2001 From: Dan Bucholtz Date: Mon, 13 Jun 2016 13:15:31 -0500 Subject: [PATCH] fix(navigation): keep the click block up longer if the keyboard is open (#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 --- src/components/nav/nav-controller.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/nav/nav-controller.ts b/src/components/nav/nav-controller.ts index c32fccc2a93..b0039b77168 100644 --- a/src/components/nav/nav-controller.ts +++ b/src/components/nav/nav-controller.ts @@ -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