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

resolves #24435
This commit is contained in:
Liam DeBeasi
2022-02-17 16:41:36 -05:00
committed by GitHub
parent 16647b2c72
commit 99c91eff87

View File

@ -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;