nuka-carousel icon indicating copy to clipboard operation
nuka-carousel copied to clipboard

`disableEdgeSwiping` prevents successive forward swipes

Open mpedersen15 opened this issue 3 years ago • 0 comments

Bugs and Questions

Prerequisites

Feel free to delete this section if you have checked off all of the following.

  • [x] I've searched open issues to make sure I'm not opening a duplicate issue
  • [x] I have read through the docs before asking a question
  • [x] I am using the latest version of nuka-carousel

Describe Your Environment

  • What version of nuka-carousel are you using? 5.2.0
  • What version of React are you using? 18.0.0
  • What browser are you using? Chrome Version 103.0.5060.114

Describe the Problem

It seems like the disableEdgeSwiping is preventing successive swiping forward after the first swipe forward. Swiping backwards works successively however.

I've produced a minimal reproduction at this codesandbox

Expected behavior: [What you expect to happen] In a carousel with 3 or more slides, after swiping from slide 1 to slide 2, I should be able to immediately swipe from slide 2 to slide 3.

Actual behavior: [What actually happens] In a carousel with 3 or more slides, after swiping from slide 1 to slide 2, I am not able to continue swiping forward. Swiping backwards and using the dots or side "Prev"/"Next" buttons works as expected (and is the only way to navigate to slide 3).

Additional Information

The bug was NOT present in nuka-carousel v4.7.4 (the previous version I was using in my project)

Thank you all for an awesome carousel component! If I missed anything on this issue, I apologize and will fix it!

mpedersen15 avatar Aug 02 '22 15:08 mpedersen15