Skip to content

Commit

Permalink
Allow vertical scrolling only
Browse files Browse the repository at this point in the history
  • Loading branch information
carbonrobot committed Oct 8, 2024
1 parent ea67b5d commit 3d98e7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/api/swiping.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion packages/nuka/src/Carousel/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export const Carousel = forwardRef<SlideHandle, CarouselProps>(
onTouchStart={onTouchStart}
id="nuka-overflow"
data-testid="nuka-overflow"
style={{ touchAction: 'none' }}
style={{ touchAction: 'pan-y' }}
>
<div
className="nuka-wrapper"
Expand Down

0 comments on commit 3d98e7e

Please sign in to comment.