Skip to content

Commit

Permalink
fix: prevent vertical scroll on thumb touch (#171)
Browse files Browse the repository at this point in the history
May need a workaround or polyfill for browsers that do not support touch-action
Closes #171
  • Loading branch information
viters authored and stonebk committed May 10, 2020
1 parent 140da6d commit 2f6dda3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ReactSlider/ReactSlider.jsx
Expand Up @@ -879,6 +879,7 @@ class ReactSlider extends React.Component {
buildThumbStyle(offset, i) {
const style = {
position: 'absolute',
touchAction: 'none',
willChange: this.state.index >= 0 ? this.posMinKey() : '',
zIndex: this.state.zIndices.indexOf(i) + 1,
};
Expand Down

0 comments on commit 2f6dda3

Please sign in to comment.