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) => {
|
onClick={(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
// If already scrolling, just toggle speed, otherwise do single scroll
|
console.log('LEFT BUTTON CLICKED!');
|
||||||
if (isScrolling) {
|
alert('LEFT BUTTON CLICKED!');
|
||||||
toggleSpeed('left');
|
scroll('left');
|
||||||
} else {
|
|
||||||
scroll('left');
|
|
||||||
}
|
|
||||||
}}
|
}}
|
||||||
onMouseEnter={(e) => {
|
onMouseEnter={(e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
@ -255,12 +252,9 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) {
|
|||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
// If already scrolling, just toggle speed, otherwise do single scroll
|
console.log('RIGHT BUTTON CLICKED!');
|
||||||
if (isScrolling) {
|
alert('RIGHT BUTTON CLICKED!');
|
||||||
toggleSpeed('right');
|
scroll('right');
|
||||||
} else {
|
|
||||||
scroll('right');
|
|
||||||
}
|
|
||||||
}}
|
}}
|
||||||
onMouseEnter={(e) => {
|
onMouseEnter={(e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user