sag1v / react-elastic-carousel

A flexible and responsive carousel component for react https://sag1v.github.io/react-elastic-carousel
MIT License
348 stars 150 forks source link

focusOnSelect conflict with enableMouseSwipe #234

Closed manly8835 closed 2 years ago

manly8835 commented 2 years ago

Describe the bug focusOnSelect and enableMouseSwipe both enabled . Drag on current slide to next slide is not working

To Reproduce Steps to reproduce the behavior:

  1. have at least 3 slides. focusOnSelect and enableMouseSwipe both enabled
  2. Drag on current slide to next slide
  3. current slide still show as active slide . (Should be next slide become active slide)

Expected behavior Next slide should become active slide

Additional context It's bcs event didn't got prevent. When drag on the slide . focusOnSelect should not execute after drag event . Drag to want switch to next slide . But after drag . click event switch back the slide .It's the main issue .

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.