From 5f1d516882e808fc1a5ff324d188e85ae600648b Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Fri, 29 Aug 2025 17:26:35 +0000 Subject: [PATCH] Adjust video carousel speed for smoother playback Update the `SimpleCarousel` component to adjust the carousel's scroll speed. The 'fast' speed value is reduced from 2.5 to 1.8 to prevent videos from appearing slightly too fast. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 2eb1084e-b728-4449-9231-f1665924c8d5 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2eb1084e-b728-4449-9231-f1665924c8d5/yexZbDm --- client/src/components/simple-carousel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/simple-carousel.tsx b/client/src/components/simple-carousel.tsx index f844757..f439383 100644 --- a/client/src/components/simple-carousel.tsx +++ b/client/src/components/simple-carousel.tsx @@ -29,7 +29,7 @@ export default function SimpleCarousel({ category, onVideoClick }: SimpleCarouse clearInterval(scrollIntervalRef.current); } - const speedValue = newSpeed === 'fast' ? 2.5 : 0.8; + const speedValue = newSpeed === 'fast' ? 1.8 : 0.8; scrollIntervalRef.current = setInterval(() => { if (!scrollContainerRef.current) return;