mirror of https://github.com/sussy-code/smov.git
add deltaX
This commit is contained in:
parent
94faa0231c
commit
2ff0ff7025
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue