mirror of
https://github.com/p-stream/p-stream.git
synced 2026-03-11 17:55:33 +00:00
add deltaX
This commit is contained in:
parent
94faa0231c
commit
2ff0ff7025
1 changed files with 1 additions and 1 deletions
|
|
@ -278,7 +278,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) {
|
||||
if (e.deltaY < 5) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue