Closed carbonrobot closed 1 month ago
Latest commit: 3d98e7ee36e593330b31b1404821d94d8ea7e438
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
nuka-carousel-website | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 8, 2024 5:43pm |
Improve the stability of swiping by using a new
minSwipeDistance
property and calculating the swipe direction to determine the users intent.Previously we used an input delay (debounce) on drag to determine when to fire the page action. This had the unintended side effect of causing the carousel to "bounce" as the drag velocity did not always match the debounce duration.
This changeset now uses a swipe distance on drag to determine when to move to the next slide/screen, which is more predictable. This also sets up the code to handle mouse events in the future and possibly a vertical scroll option.
Current
This PR