metafizzy / metafizzy/flickity
Only enable wrapAround when slides fill carousel
- Dominant language
- JavaScript
- Stars
- 7.6k
- Forks
- 593
- PR merge metrics
- No merged PRs in 30d
Description
Test case: https://codepen.io/desandro/pen/xJQwyV
Addressing #95. If you enable `wrapAround`, but the slides do not fill the carousel, you'll see a bug where the slides will jump around trying to fill the container. One solution is only enable `wrapAround` if there's enough content to fill the carousel, so this bug does not occur. This feature could be built into Flickity itself, with something like `wrapAround: 'fill'`.
**Add a 👍 reaction** to this issue if you would like to see this feature added. Do not add +1 comments — [They will be deleted](http://metafizzy.co/blog/use-github-reactions-delete-plus-1-comments/).
Contributor guide
Research direction
Start with the CodePen reproduction and issue #95, then trace Flickity's existing `wrapAround` behavior. Confirm the carousel no longer jumps when slides do not fill the container, while wrap-around still works when the content is sufficient; clarify whether the requested API is `wrapAround: 'fill'`.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100