perf(frontend): avoid main thread scroll repaint
This commit is contained in:
parent
1779a23e25
commit
7cecaa5c54
|
@ -215,6 +215,14 @@ onUnmounted(() => {
|
||||||
.content {
|
.content {
|
||||||
--MI-stickyTop: 0px;
|
--MI-stickyTop: 0px;
|
||||||
|
|
||||||
|
/*
|
||||||
|
理屈は知らないけど、ここでbackgroundを設定しておかないと
|
||||||
|
スクロールコンテナーが少なくともChromeにおいて
|
||||||
|
main thread scrolling になってしまい、パフォーマンスが(多分)落ちる。
|
||||||
|
backgroundが透明だと裏側を描画しないといけなくなるとかそういう理由かもしれない
|
||||||
|
*/
|
||||||
|
background: var(--MI_THEME-panel);
|
||||||
|
|
||||||
&.omitted {
|
&.omitted {
|
||||||
position: relative;
|
position: relative;
|
||||||
max-height: var(--maxHeight);
|
max-height: var(--maxHeight);
|
||||||
|
|
Loading…
Reference in New Issue