mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
fix(react, vue): scroll is no longer interrupted on ios (#24791)
resolves #24435
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user