Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

fix(nav): add patch for iOS 12.2 scrolling bug #1007

Merged
merged 1 commit into from
Apr 9, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/navigation/nav-controller-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,26 @@ export class NavControllerBase extends Ion implements NavController {
}

this._cleanup(enteringView);

/**
* On iOS 12.2 there is a bug that
* causes scrolling to not
* be re-enabled unless there
* is some kind of CSS reflow triggered
*/
if (enteringView.getIONContentRef()) {
const platform = this.plt;
platform.timeout(() => {
platform.raf(() => {
const content = enteringView.getIONContentRef().nativeElement;
content.style.zIndex = '1';

platform.raf(() => {
content.style.zIndex = '';
});
});
}, 500);
}
} else {
// If transition does not complete, we have to cleanup anyway, because
// previous pages in the stack are not hidden probably.
Expand Down