Fix scrolling on discover page

This commit is contained in:
sussy-code 2024-05-31 22:09:18 +00:00
parent 95a5e1a932
commit a45b045cd9
1 changed files with 1 additions and 1 deletions

View File

@ -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;