mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +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
@ -167,6 +167,12 @@ export class ViewController {
|
||||
if (!this._nav) {
|
||||
return Promise.resolve(false);
|
||||
}
|
||||
if (this.isOverlay && !navOptions.minClickBlockDuration) {
|
||||
// This is a Modal being dismissed so we need
|
||||
// to add the minClickBlockDuration option
|
||||
// for UIWebView
|
||||
navOptions.minClickBlockDuration = 400;
|
||||
}
|
||||
this._dismissData = data;
|
||||
this._dismissRole = role;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user