Skip to content

Commit

Permalink
fix(backdrop): flicker in UIWebView
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat authored and adamdbradley committed Jul 19, 2016
1 parent ac8e4dc commit 44ab527
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/components/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down
3 changes: 2 additions & 1 deletion src/platform/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit 44ab527

Please sign in to comment.