mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +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
|
||||
*/
|
||||
setScrollDisabled(disabled: boolean) {
|
||||
setScrollDisabled(disableScroll: boolean) {
|
||||
let enabled = this._config.get('canDisableScroll', true);
|
||||
if (!enabled) {
|
||||
return;
|
||||
}
|
||||
if (!this.appRoot) {
|
||||
console.error('appRoot is missing, scrolling can not be enabled/disabled');
|
||||
return;
|
||||
}
|
||||
this.appRoot.disableScroll = disabled;
|
||||
this.appRoot.disableScroll = disableScroll;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -104,7 +104,8 @@ Platform.register({
|
||||
swipeBackEnabled: isIOSDevice,
|
||||
swipeBackThreshold: 40,
|
||||
tapPolyfill: isIOSDevice,
|
||||
virtualScrollEventAssist: !(win.indexedDB)
|
||||
virtualScrollEventAssist: !(win.indexedDB),
|
||||
canDisableScroll: !!(win.indexedDB),
|
||||
},
|
||||
isMatch(p: Platform): boolean {
|
||||
return p.isPlatformMatch('ios', ['iphone', 'ipad', 'ipod'], ['windows phone']);
|
||||
|
Reference in New Issue
Block a user