diff --git a/src/components/sections/about/related/index.tsx b/src/components/sections/about/related/index.tsx index 8758385..4440939 100644 --- a/src/components/sections/about/related/index.tsx +++ b/src/components/sections/about/related/index.tsx @@ -34,7 +34,8 @@ const Related = ({ data, isInPost, isFeatured, reduced }: Props) => { loop: false }, '(max-width: 900px)': { - slides: { perView: 1.12, spacing: 12 } + slides: { perView: 1.12, spacing: 12 }, + mode: 'snap' } } }) diff --git a/src/components/sections/about/team/team.tsx b/src/components/sections/about/team/team.tsx index cd980e4..20b1b5c 100644 --- a/src/components/sections/about/team/team.tsx +++ b/src/components/sections/about/team/team.tsx @@ -85,7 +85,8 @@ function Team({ members, teamName, teamNumber, teamDept }: Teams) { }, breakpoints: { '(max-width: 900px)': { - slides: { perView: 2.2, spacing: 20, origin: 'center' } + slides: { perView: 2.2, spacing: 20, origin: 'center' }, + mode: 'snap' }, '(max-width: 600px)': { slides: { perView: 1.65, spacing: 35, origin: 'center' } diff --git a/src/components/sections/community/events/index.tsx b/src/components/sections/community/events/index.tsx index 622b5ed..a284750 100644 --- a/src/components/sections/community/events/index.tsx +++ b/src/components/sections/community/events/index.tsx @@ -46,7 +46,8 @@ const Events = ({ eventsData, data }: Props) => { slides: { perView: 2.915, spacing: 20 } }, '(max-width: 900px)': { - slides: { perView: 1.12, spacing: 12 } + slides: { perView: 1.12, spacing: 12 }, + mode: 'snap' } } }) diff --git a/src/components/sections/homepage/benefits/index.tsx b/src/components/sections/homepage/benefits/index.tsx index 6dbbb6a..34eb523 100644 --- a/src/components/sections/homepage/benefits/index.tsx +++ b/src/components/sections/homepage/benefits/index.tsx @@ -57,7 +57,7 @@ const Benefits = ({ data }: Props) => { const ballRef = React.useRef(null) const gridRef = React.useRef(null) const userRef = React.useRef(null) - const isMobile = useMedia('(max-width: 768px)') + const isMobile = useMedia('(max-width: 900px)') const [isMounted, setIsMounted] = React.useState(false) diff --git a/src/components/sections/homepage/latest-news/index.tsx b/src/components/sections/homepage/latest-news/index.tsx index 53a3254..59468ff 100644 --- a/src/components/sections/homepage/latest-news/index.tsx +++ b/src/components/sections/homepage/latest-news/index.tsx @@ -35,7 +35,8 @@ const LatestNews = ({ data, blogData }: Props) => { slides: { perView: 2.915, spacing: 20 } }, '(max-width: 900px)': { - slides: { perView: 1.12, spacing: 12 } + slides: { perView: 1.12, spacing: 12 }, + mode: 'snap' } } }) diff --git a/src/components/sections/homepage/what-others-say/index.tsx b/src/components/sections/homepage/what-others-say/index.tsx index 9fae35b..ffcc9c9 100644 --- a/src/components/sections/homepage/what-others-say/index.tsx +++ b/src/components/sections/homepage/what-others-say/index.tsx @@ -37,6 +37,11 @@ const WhatOthersSay = ({ data, testimonialsData }: Props) => { slides: { perView: 1.2, spacing: 12 + }, + breakpoints: { + '(max-width: 900px)': { + mode: 'snap' + } } }) diff --git a/src/components/sections/newsroom/press/index.tsx b/src/components/sections/newsroom/press/index.tsx index 82f6908..6189a85 100644 --- a/src/components/sections/newsroom/press/index.tsx +++ b/src/components/sections/newsroom/press/index.tsx @@ -32,7 +32,8 @@ const Press = ({ blogData }: Props) => { slides: { perView: 2.915, spacing: 20 } }, '(max-width: 900px)': { - slides: { perView: 1.12, spacing: 12 } + slides: { perView: 1.12, spacing: 12 }, + mode: 'snap' } } })