mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 14:01:20 +08:00
fix(backdrop): flicker in UIWebView
This commit is contained in:

committed by
Adam Bradley

parent
ac8e4dce06
commit
44ab527f74
@ -95,12 +95,16 @@ export class App {
|
|||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
setScrollDisabled(disabled: boolean) {
|
setScrollDisabled(disableScroll: boolean) {
|
||||||
|
let enabled = this._config.get('canDisableScroll', true);
|
||||||
|
if (!enabled) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!this.appRoot) {
|
if (!this.appRoot) {
|
||||||
console.error('appRoot is missing, scrolling can not be enabled/disabled');
|
console.error('appRoot is missing, scrolling can not be enabled/disabled');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.appRoot.disableScroll = disabled;
|
this.appRoot.disableScroll = disableScroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -104,7 +104,8 @@ Platform.register({
|
|||||||
swipeBackEnabled: isIOSDevice,
|
swipeBackEnabled: isIOSDevice,
|
||||||
swipeBackThreshold: 40,
|
swipeBackThreshold: 40,
|
||||||
tapPolyfill: isIOSDevice,
|
tapPolyfill: isIOSDevice,
|
||||||
virtualScrollEventAssist: !(win.indexedDB)
|
virtualScrollEventAssist: !(win.indexedDB),
|
||||||
|
canDisableScroll: !!(win.indexedDB),
|
||||||
},
|
},
|
||||||
isMatch(p: Platform): boolean {
|
isMatch(p: Platform): boolean {
|
||||||
return p.isPlatformMatch('ios', ['iphone', 'ipad', 'ipod'], ['windows phone']);
|
return p.isPlatformMatch('ios', ['iphone', 'ipad', 'ipod'], ['windows phone']);
|
||||||
|
Reference in New Issue
Block a user