From d44c4acff3e0af664439a72b824f32b0e9642cc3 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Fri, 29 Aug 2025 16:39:50 +0000 Subject: [PATCH] Add alerts to indicate when category row scroll buttons are clicked Updates the `CategoryRow` component in `netflix-grid.tsx` to include `console.log` and `alert` statements for left and right scroll button clicks, replacing conditional speed toggling logic with a direct scroll action. 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/kDuVJ3s --- client/src/components/netflix-grid.tsx | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/client/src/components/netflix-grid.tsx b/client/src/components/netflix-grid.tsx index b1a2bde..4351fc5 100644 --- a/client/src/components/netflix-grid.tsx +++ b/client/src/components/netflix-grid.tsx @@ -229,12 +229,9 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) { onClick={(e) => { e.preventDefault(); e.stopPropagation(); - // If already scrolling, just toggle speed, otherwise do single scroll - if (isScrolling) { - toggleSpeed('left'); - } else { - scroll('left'); - } + console.log('LEFT BUTTON CLICKED!'); + alert('LEFT BUTTON CLICKED!'); + scroll('left'); }} onMouseEnter={(e) => { e.stopPropagation(); @@ -255,12 +252,9 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) { onClick={(e) => { e.preventDefault(); e.stopPropagation(); - // If already scrolling, just toggle speed, otherwise do single scroll - if (isScrolling) { - toggleSpeed('right'); - } else { - scroll('right'); - } + console.log('RIGHT BUTTON CLICKED!'); + alert('RIGHT BUTTON CLICKED!'); + scroll('right'); }} onMouseEnter={(e) => { e.stopPropagation();