diff --git a/client/src/components/netflix-grid.tsx b/client/src/components/netflix-grid.tsx index 59aec91..b1a2bde 100644 --- a/client/src/components/netflix-grid.tsx +++ b/client/src/components/netflix-grid.tsx @@ -146,7 +146,10 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) { const scroll = (direction: 'left' | 'right') => { // Only move one step when clicked (no speed change here) const step = direction === 'right' ? -videoWidth : videoWidth; - setTranslateX(prev => prev + step); + setTranslateX(prev => { + console.log(`Scroll ${direction}: ${prev} + ${step} = ${prev + step}`); + return prev + step; + }); }; const toggleSpeed = (direction: 'left' | 'right') => { @@ -214,8 +217,6 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) { } }; - console.log(`CategoryRow rendering: ${category.title}, videos: ${category.videos.length}`); - return (