Skip to content

Commit

Permalink
Merge pull request #44 from returnkirbo/touchpad
Browse files Browse the repository at this point in the history
fix touchpad support
  • Loading branch information
Captain Jack Sparrow authored Jun 9, 2024
2 parents 58d5da3 + 2ff0ff7 commit 46662f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Discover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 46662f0

Please sign in to comment.