mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-04-28 21:45:18 +02:00
perf(frontend): avoid main thread scroll repaint
This commit is contained in:
parent
1779a23e25
commit
7cecaa5c54
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue