Skip to content

Commit

Permalink
fix: try only applying touch-action: none when the slider is being …
Browse files Browse the repository at this point in the history
…dragged #134
  • Loading branch information
nerdyman committed Sep 12, 2024
1 parent e6508ca commit e35d7c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/ReactCompareSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ export const ReactCompareSlider = forwardRef<
maxHeight: '100%',
overflow: 'hidden',
cursor: isDragging ? (portrait ? 'ns-resize' : 'ew-resize') : undefined,
touchAction: 'none',
touchAction: isDragging ? 'none' : undefined,
userSelect: 'none',
KhtmlUserSelect: 'none',
msUserSelect: 'none',
Expand Down

0 comments on commit e35d7c4

Please sign in to comment.