Skip to content

Commit

Permalink
fix: typing-for-preventVerticalScroll (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
Conor-Hinchee authored Oct 13, 2022
1 parent 43594ee commit 5ce9663
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Slider/Slider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@ const Slider = class Slider extends React.Component {
step,
infinite,
preventVerticalScrollOnTouch,
preventingVerticalScroll,
horizontalPixelThreshold,
verticalPixelThreshold,
...rest
Expand Down
4 changes: 2 additions & 2 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ interface CarouselProviderProps {
readonly isPlaying?: CarouselState['isPlaying']
readonly lockOnWindowScroll?: CarouselState['lockOnWindowScroll']
readonly preventVerticalScrollOnTouch?: CarouselState['preventVerticalScrollOnTouch']
readonly horizontalPixelThreshold: CarouselState['horizontalPixelThreshold']
readonly verticalPixelThreshold: CarouselState['verticalPixelThreshold'],
readonly horizontalPixelThreshold?: CarouselState['horizontalPixelThreshold']
readonly verticalPixelThreshold?: CarouselState['verticalPixelThreshold'],
readonly naturalSlideHeight: CarouselState['naturalSlideHeight']
readonly naturalSlideWidth: CarouselState['naturalSlideWidth']
readonly playDirection?: 'forward' | 'backward'
Expand Down

0 comments on commit 5ce9663

Please sign in to comment.