diff --git a/client/src/components/netflix-grid.tsx b/client/src/components/netflix-grid.tsx index 581101c..31e2035 100644 --- a/client/src/components/netflix-grid.tsx +++ b/client/src/components/netflix-grid.tsx @@ -155,6 +155,11 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) { }; const startAutoScroll = (direction: 'left' | 'right') => { + // Stop any existing scrolling first + if (scrollIntervalRef.current) { + clearInterval(scrollIntervalRef.current); + } + setIsScrolling(true); scrollIntervalRef.current = setInterval(() => { if (scrollRef.current) {