Merge pull request #44 from returnkirbo/touchpad

fix touchpad support
This commit is contained in:
Captain Jack Sparrow 2024-06-09 16:57:26 -04:00 committed by GitHub
commit 46662f0615
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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) {