mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
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
This commit is contained in:
@ -1179,7 +1179,12 @@ export class NavController extends Ion {
|
|||||||
transAnimation.duration(0);
|
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);
|
let enableApp = (duration < 64);
|
||||||
// block any clicks during the transition and provide a
|
// block any clicks during the transition and provide a
|
||||||
// fallback to remove the clickblock if something goes wrong
|
// fallback to remove the clickblock if something goes wrong
|
||||||
|
Reference in New Issue
Block a user