FormidableLabs / nuka-carousel

Small, fast, and accessibility-first React carousel library with an easily customizable UI and behavior to fit your brand and site.
https://commerce.nearform.com/open-source/nuka-carousel
Other
3.02k stars 597 forks source link

fix: eliminate janky animation during rapid clicking #943

Closed fritz-c closed 1 year ago

fritz-c commented 1 year ago

Description

Before:

https://user-images.githubusercontent.com/4413963/182467166-e5b48ae7-a6cf-4aaf-aa9c-f304747f4e48.mov

After:

https://user-images.githubusercontent.com/4413963/182467191-fefab397-5669-46d7-80e9-82e2aa2d401d.mov

Also includes some variable renaming and logic simplification refactors. The bugfix changes can be viewed individually by looking at the commit for the fix.

Fixes #919

Type of Change

How Has This Been Tested?

Manually.

Checklist: (Feel free to delete this section upon completion)

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
nuka-carousel ✅ Ready (Inspect) Visit Preview Sep 2, 2022 at 8:41PM (UTC)