Skip to content

Commit

Permalink
Add touch-action style property
Browse files Browse the repository at this point in the history
  • Loading branch information
efremov-av authored Aug 8, 2024
1 parent f77ace4 commit 87676f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions react/components/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ const Slider: FC<Props> = ({
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}`}
>
Expand Down

0 comments on commit 87676f6

Please sign in to comment.