Decrease GPU usage when window is invisible

This commit is contained in:
Evan Hahn 2021-07-30 13:35:43 -05:00 committed by GitHub
parent 9fb8114691
commit 2d3b1918b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 40 additions and 54 deletions

View file

@ -72,6 +72,8 @@ addDecorator((storyFn /* , context */) => {
document.body.classList.add('keyboard-mode');
}
document.body.classList.add('page-is-visible');
return (
<div className={styles.container}>
<ClassyProvider themes={['dark']}>