Adjust video playback speed for smoother user experience

Update default and fast playback speeds in the carousel component from 0.6/1.2 to 0.8/2.5.

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:25:39 +00:00
parent e377b33f7b
commit 35e181ea3a

View File

@ -29,7 +29,7 @@ export default function SimpleCarousel({ category, onVideoClick }: SimpleCarouse
clearInterval(scrollIntervalRef.current);
}
const speedValue = newSpeed === 'fast' ? 1.2 : 0.6;
const speedValue = newSpeed === 'fast' ? 2.5 : 0.8;
scrollIntervalRef.current = setInterval(() => {
if (!scrollContainerRef.current) return;
@ -54,7 +54,7 @@ export default function SimpleCarousel({ category, onVideoClick }: SimpleCarouse
setCurrentDirection(direction);
setSpeed('normal'); // Reset to normal speed when starting
const speedValue = 0.6; // Always start with normal speed
const speedValue = 0.8; // Always start with normal speed
scrollIntervalRef.current = setInterval(() => {
if (!scrollContainerRef.current) return;