FormidableLabs / FormidableLabs/nuka-carousel

Bug: scrollDistance=screen will sometimes ignore the last page

Open
#1,095 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.1k
Forks
588
PR merge metrics
No merged PRs in 30d

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

### Code Sandbox link

_No response_

### Bug report

Noticed on the demo site - https://commerce.nearform.com/open-source/nuka-carousel/. If I size my browser (Chrome) to a width >1620px, the carousel will only think there is a single page (and not render any next/prev buttons):

![Image](https://github.com/user-attachments/assets/35d88a08-315b-4f0b-b205-d45211d1d3a0)

A viewport less than this works as expected.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.