mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
fix(clickblock): add NavOptions.minClickBlockDuration
* feat(clickblock): ability to set a minimum duration for click block * fix(clickblock): add NavOptions.minClickBlockDuration
This commit is contained in:

committed by
Justin Willis

parent
3f164237ae
commit
8ca9797c0f
@ -663,7 +663,7 @@ export class NavControllerBase extends Ion implements NavController {
|
||||
if (duration > DISABLE_APP_MINIMUM_DURATION && opts.disableApp !== false) {
|
||||
// if this transition has a duration and this is the root transition
|
||||
// then set that the app is actively disabled
|
||||
this._app.setEnabled(false, duration + ACTIVE_TRANSITION_OFFSET);
|
||||
this._app.setEnabled(false, duration + ACTIVE_TRANSITION_OFFSET, opts.minClickBlockDuration);
|
||||
} else {
|
||||
console.debug('transition is running but app has not been disabled');
|
||||
}
|
||||
|
Reference in New Issue
Block a user