add deltaX

This commit is contained in:
kirbo 2024-06-08 15:05:03 -07:00
parent 94faa0231c
commit 2ff0ff7025
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ export function Discover() {
isScrolling = true; isScrolling = true;
const carousel = carouselRefs.current[categorySlug]; const carousel = carouselRefs.current[categorySlug];
if (carousel) { if (carousel && !e.deltaX) {
const movieElements = carousel.getElementsByTagName("a"); const movieElements = carousel.getElementsByTagName("a");
if (movieElements.length > 0) { if (movieElements.length > 0) {
if (e.deltaY < 5) { if (e.deltaY < 5) {