1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

better performance

This commit is contained in:
Fedor Katurov 2019-11-07 18:27:02 +07:00
parent d9f39a8d67
commit c9a730dd15
2 changed files with 2 additions and 1 deletions

View file

@ -38,7 +38,7 @@ const Cell: FC<IProps> = ({
if (visibility !== is_visible) setIsVisible(visibility); if (visibility !== is_visible) setIsVisible(visibility);
}, [ref, is_visible, setIsVisible]); }, [ref, is_visible, setIsVisible]);
const checkIfVisibleDebounced = useCallback(debounce(200 + Math.random() * 200, checkIfVisible), [ const checkIfVisibleDebounced = useCallback(debounce(Math.random() * 200, checkIfVisible), [
checkIfVisible, checkIfVisible,
]); ]);

View file

@ -8,6 +8,7 @@
position: relative; position: relative;
cursor: pointer; cursor: pointer;
color: white; color: white;
background: 50% 50% no-repeat/cover;
.is_hero { .is_hero {
.title { .title {