Skip to content

Commit d6b7d5d

Browse files
authored
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
1 parent db9fa7e commit d6b7d5d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/nav/nav-controller.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,12 @@ export class NavController extends Ion {
11791179
transAnimation.duration(0);
11801180
}
11811181

1182-
let duration = transAnimation.getDuration();
1182+
let keyboardDurationPadding = 0;
1183+
if ( this._keyboard.isOpen() ) {
1184+
// add XXms to the duration the app is disabled when the keyboard is open
1185+
keyboardDurationPadding = 600;
1186+
}
1187+
let duration = transAnimation.getDuration() + keyboardDurationPadding;
11831188
let enableApp = (duration < 64);
11841189
// block any clicks during the transition and provide a
11851190
// fallback to remove the clickblock if something goes wrong

0 commit comments

Comments
 (0)