From a45b045cd951d7884c455083806826fa240c86df Mon Sep 17 00:00:00 2001 From: sussy-code Date: Fri, 31 May 2024 22:09:18 +0000 Subject: [PATCH] Fix scrolling on discover page --- src/pages/Discover.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Discover.tsx b/src/pages/Discover.tsx index 1dab9a39..e578a626 100644 --- a/src/pages/Discover.tsx +++ b/src/pages/Discover.tsx @@ -293,7 +293,7 @@ export function Discover() { isScrolling = true; const carousel = carouselRefs.current[categorySlug]; - if (carousel) { + if (carousel && !e.deltaX) { const movieElements = carousel.getElementsByTagName("a"); if (movieElements.length > 0) { const posterWidth = movieElements[0].offsetWidth;