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
This commit is contained in:
sebastjanartic 2025-08-29 17:26:35 +00:00
parent 35e181ea3a
commit 5f1d516882

View File

@ -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;