Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(react, vue): scroll is no longer interrupted on ios #24791

Merged
merged 3 commits into from
Feb 17, 2022
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
22 changes: 22 additions & 0 deletions core/src/css/structure.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,28 @@ body {
height: 100%;
max-height: 100%;

/**
* Because body has position: fixed,
* it should be promoted to its own
* layer.
*
* WebKit does not always promote
* the body to its own layer on page
* load in Ionic apps. Once scrolling on
* ion-content starts, WebKit will promote
* body. Unfortunately, this causes a re-paint
* which results in scrolling being halted
* until the next user gesture.
*
* This impacts the Custom Elements build.
* The lazy loaded build causes the browser to
* re-paint during hydration which causes WebKit
* to promote body to its own layer.
* In the CE Build, this hydration does not
* happen, so the additional re-paint does not occur.
*/
transform: translateZ(0);

text-rendering: optimizeLegibility;

overflow: hidden;
Expand Down