mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-04-27 02:16:31 +02:00
perf(frontend): avoid main thread scroll repaint
This commit is contained in:
parent
1c26dae39f
commit
811077ca66
2 changed files with 10 additions and 2 deletions
packages/frontend/src/ui
|
@ -226,13 +226,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%;
|
||||
|
|
|
@ -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%;
|
||||
|
|
Loading…
Add table
Reference in a new issue