Skip to content

Fix: Prevent carousel from peeking when only one item exists#275

Merged
theovilardo merged 1 commit intotheovilardo:masterfrom
ColbyCabrera:master
Oct 21, 2025
Merged

Fix: Prevent carousel from peeking when only one item exists#275
theovilardo merged 1 commit intotheovilardo:masterfrom
ColbyCabrera:master

Conversation

@ColbyCabrera
Copy link
Contributor

This commit modifies the AlbumCarouselSelection to handle cases where there is only one item in the queue.

When the pagerState.pageCount is equal to 1, the carouselStyle is now forced to CarouselStyle.NO_PEEK. This prevents the carousel from showing a "peek" of adjacent (non-existent) items, which could cause visual bugs or an undesirable layout.

This commit modifies the `AlbumCarouselSelection` to handle cases where there is only one item in the queue.

When the `pagerState.pageCount` is equal to 1, the `carouselStyle` is now forced to `CarouselStyle.NO_PEEK`. This prevents the carousel from showing a "peek" of adjacent (non-existent) items, which could cause visual bugs or an undesirable layout.
@theovilardo theovilardo merged commit 89229f3 into theovilardo:master Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants