1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-05 13:35:52 +02:00

perf(frontend): avoid main thread scroll repaint

This commit is contained in:
syuilo
2025-03-28 15:26:15 +09:00
parent 1c26dae39f
commit 811077ca66
2 changed files with 10 additions and 2 deletions

View File

@@ -216,13 +216,17 @@ html,
body {
width: 100%;
height: 100%;
overflow: clip;
position: fixed;
top: 0;
left: 0;
overscroll-behavior: none;
}
body {
/* NOTE: htmlにも overflow: clip を設定したいところだが、設定すると何故か少なくともChromeでhtmlがmain thread scroll repaint扱いになりパフォーマンスが(多分)落ちる */
overflow: clip;
}
#misskey_app {
width: 100%;
height: 100%;