Improve video carousel navigation by enabling smooth scrolling on hover
Update client/src/components/netflix-grid.tsx to trigger smooth scrolling of video categories when hovering over navigation arrows. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 8e9f2b36-ec9c-4acc-b19b-5304fa9790c5 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/8e9f2b36-ec9c-4acc-b19b-5304fa9790c5/0CzYEcy
This commit is contained in:
parent
0956bbba7d
commit
0c1d1e7053
@ -281,7 +281,6 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate
|
||||
{/* Navigation arrows - left and right */}
|
||||
<div className="absolute left-2 top-1/2 -translate-y-1/2 z-[40] hidden md:block">
|
||||
<Button
|
||||
onClick={() => scroll('left')}
|
||||
onMouseEnter={() => startAutoScroll('left')}
|
||||
onMouseLeave={stopAutoScroll}
|
||||
className="bg-black/60 hover:bg-black/80 text-white border-none w-10 h-16 rounded transition-all duration-300 flex items-center justify-center shadow-lg backdrop-blur-sm"
|
||||
@ -292,7 +291,6 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate
|
||||
</div>
|
||||
<div className="absolute right-2 top-1/2 -translate-y-1/2 z-[40] hidden md:block">
|
||||
<Button
|
||||
onClick={() => scroll('right')}
|
||||
onMouseEnter={() => startAutoScroll('right')}
|
||||
onMouseLeave={stopAutoScroll}
|
||||
className="bg-black/60 hover:bg-black/80 text-white border-none w-10 h-16 rounded transition-all duration-300 flex items-center justify-center shadow-lg backdrop-blur-sm"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user