-
-
Notifications
You must be signed in to change notification settings - Fork 81
Open
Description
Describe the bug
On mobile devices, the image comparison slider does not respond to touch dragging.
- Tapping works (moves the slider to the tap location)
- But touch dragging (sliding finger left/right) does not move the divider as expected
This makes the experience less intuitive on phones and tablets.
To Reproduce
- Use
react-compare-imagein a simple component - Open the page on a mobile browser (tested on iOS Safari, Android Chrome)
- Try dragging the slider with your finger
Expected behavior:
The divider should follow the finger (just like mouse dragging does on desktop).
Demo Code
import ReactCompareImage from 'react-compare-image';
<ReactCompareImage
leftImage="/before.jpg"
rightImage="/after.jpg"
/>Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels