diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fc4892..1d806e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fixed + +- Fixed unexpected vertical scrolling when user scrolls the slider horizontally + ## [0.24.4] - 2023-11-06 ### Fixed diff --git a/react/components/Slider.tsx b/react/components/Slider.tsx index 85fd78b..f4eaee8 100644 --- a/react/components/Slider.tsx +++ b/react/components/Slider.tsx @@ -105,6 +105,7 @@ const Slider: FC = ({ WebkitOverflowScrolling: !shouldUsePagination ? 'touch' : undefined, paddingLeft: fullWidth ? undefined : arrowSize * 2, paddingRight: fullWidth ? undefined : arrowSize * 2, + touchAction: 'pan-y', }} className={`w-100 flex items-center relative ${handles.sliderLayoutContainer}`} >