From 3d98e7ee36e593330b31b1404821d94d8ea7e438 Mon Sep 17 00:00:00 2001 From: Charlie Brown Date: Tue, 8 Oct 2024 12:42:52 -0500 Subject: [PATCH] Allow vertical scrolling only --- docs/api/swiping.mdx | 2 +- packages/nuka/src/Carousel/Carousel.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/swiping.mdx b/docs/api/swiping.mdx index a54571ab..e1451372 100644 --- a/docs/api/swiping.mdx +++ b/docs/api/swiping.mdx @@ -12,7 +12,7 @@ By default the carousel will allow you to drag the carousel to the next slide. Y | Prop Name | Type | Default Value | | :--------- | :-------- | :------------ | -| `minSwipeDistance` | `number` | 10 | +| `minSwipeDistance` | `number` | 50 | | `swiping` | `boolean` | `true` | ### Enabled with `scrollDistance="slide"` diff --git a/packages/nuka/src/Carousel/Carousel.tsx b/packages/nuka/src/Carousel/Carousel.tsx index f9de81cf..db0fbb24 100644 --- a/packages/nuka/src/Carousel/Carousel.tsx +++ b/packages/nuka/src/Carousel/Carousel.tsx @@ -181,7 +181,7 @@ export const Carousel = forwardRef( onTouchStart={onTouchStart} id="nuka-overflow" data-testid="nuka-overflow" - style={{ touchAction: 'none' }} + style={{ touchAction: 'pan-y' }} >