diff --git a/client/src/components/simple-carousel.tsx b/client/src/components/simple-carousel.tsx index e88c3fa..bdbe916 100644 --- a/client/src/components/simple-carousel.tsx +++ b/client/src/components/simple-carousel.tsx @@ -32,13 +32,13 @@ export default function SimpleCarousel({ category, onVideoClick }: SimpleCarouse scrollIntervalRef.current = setInterval(() => { if (!scrollContainerRef.current) return; - const currentSpeed = newSpeed === 'fast' ? 3 : 1.5; + const currentSpeed = newSpeed === 'fast' ? 1.2 : 0.6; const scrollAmount = direction === 'right' ? currentSpeed : -currentSpeed; scrollContainerRef.current.scrollBy({ left: scrollAmount, behavior: 'auto' }); - }, 16); + }, 8); } else { // If not scrolling or different direction, start scrolling startAutoScroll(direction); @@ -57,13 +57,13 @@ export default function SimpleCarousel({ category, onVideoClick }: SimpleCarouse scrollIntervalRef.current = setInterval(() => { if (!scrollContainerRef.current) return; - const currentSpeed = speed === 'fast' ? 3 : 1.5; + const currentSpeed = speed === 'fast' ? 1.2 : 0.6; const scrollAmount = direction === 'right' ? currentSpeed : -currentSpeed; scrollContainerRef.current.scrollBy({ left: scrollAmount, behavior: 'auto' }); - }, 16); + }, 8); }; const stopAutoScroll = () => {