perf(frontend): avoid main thread scroll repaint

This commit is contained in:
syuilo 2025-04-03 14:32:42 +09:00
parent 1779a23e25
commit 7cecaa5c54

View file

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