Skip to content

Commit 44ab527

Browse files
manucorporatadamdbradley
authored andcommitted
fix(backdrop): flicker in UIWebView
1 parent ac8e4dc commit 44ab527

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/components/app/app.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,16 @@ export class App {
9595
/**
9696
* @private
9797
*/
98-
setScrollDisabled(disabled: boolean) {
98+
setScrollDisabled(disableScroll: boolean) {
99+
let enabled = this._config.get('canDisableScroll', true);
100+
if (!enabled) {
101+
return;
102+
}
99103
if (!this.appRoot) {
100104
console.error('appRoot is missing, scrolling can not be enabled/disabled');
101105
return;
102106
}
103-
this.appRoot.disableScroll = disabled;
107+
this.appRoot.disableScroll = disableScroll;
104108
}
105109

106110
/**

src/platform/registry.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ Platform.register({
104104
swipeBackEnabled: isIOSDevice,
105105
swipeBackThreshold: 40,
106106
tapPolyfill: isIOSDevice,
107-
virtualScrollEventAssist: !(win.indexedDB)
107+
virtualScrollEventAssist: !(win.indexedDB),
108+
canDisableScroll: !!(win.indexedDB),
108109
},
109110
isMatch(p: Platform): boolean {
110111
return p.isPlatformMatch('ios', ['iphone', 'ipad', 'ipod'], ['windows phone']);

0 commit comments

Comments
 (0)