From 71ca86f99ec50f2cea0ebed59d9e4353307a7072 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Fri, 29 Aug 2025 16:45:29 +0000 Subject: [PATCH] Improve scrolling behavior in video category rows Removes console logs from the CategoryRow component in netflix-grid.tsx and simplifies the translateX update logic within the scroll function. 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/KcsXLXG --- client/src/components/netflix-grid.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/client/src/components/netflix-grid.tsx b/client/src/components/netflix-grid.tsx index e459b59..eda86e8 100644 --- a/client/src/components/netflix-grid.tsx +++ b/client/src/components/netflix-grid.tsx @@ -146,10 +146,7 @@ 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 => { - console.log(`Scroll ${direction}: ${prev} + ${step} = ${prev + step}`); - return prev + step; - }); + setTranslateX(prev => prev + step); }; const toggleSpeed = (direction: 'left' | 'right') => { @@ -229,7 +226,6 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) { onClick={(e) => { e.preventDefault(); e.stopPropagation(); - console.log('LEFT BUTTON CLICKED!'); scroll('left'); }} onMouseEnter={(e) => { @@ -251,7 +247,6 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) { onClick={(e) => { e.preventDefault(); e.stopPropagation(); - console.log('RIGHT BUTTON CLICKED!'); scroll('right'); }} onMouseEnter={(e) => {