@@ -3,7 +3,6 @@ import { useCallback, useMemo } from 'react';
3
3
import { useTranslation } from 'react-i18next' ;
4
4
5
5
import useFetchGitHubRepoInfo from '@/hooks/useFetchGitHubRepoInfo' ;
6
- import useIsDesktop from '@/hooks/useIsDesktop' ;
7
6
import useSeamlessScroll from '@/hooks/useSeamlessScroll' ;
8
7
9
8
import coreLibraryPreview from '../../assets/images/LandingPage/ProjectPreviews/core_library.webp' ;
@@ -22,7 +21,6 @@ export const ProjectSection = (): JSX.Element => {
22
21
// lazy loads translations
23
22
const { t } = useTranslation ( 'components/home' ) ;
24
23
25
- const isDesktop = useIsDesktop ( ) ;
26
24
const theme = useTheme ( ) ;
27
25
const isDark = theme . palette . mode === 'dark' ;
28
26
const gradientColor = isDark ? '9,9,11' : '237,237,237' ;
@@ -52,7 +50,8 @@ export const ProjectSection = (): JSX.Element => {
52
50
} , [ projects ] ) ;
53
51
54
52
// initialize seamless scroll hook
55
- const scrollSpeed = isDesktop ? 0.05 : 0.3 ;
53
+ // note: speed value 0.05 and below seems to break on mobile
54
+ const scrollSpeed = 0.06 ;
56
55
const { containerRef, handlers } = useSeamlessScroll ( scrollSpeed , loopedProjects . length ) ;
57
56
58
57
// generate unique keys for each card
0 commit comments