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
This commit is contained in:
parent
479cff5a82
commit
d44c4acff3
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user