Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kubaflo committed Apr 28, 2024
1 parent e33d176 commit 9a84ec4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,11 @@ void CollectionItemsSourceChanged(object sender, System.Collections.Specialized.
.Dispatch(() =>
{

if (carouselPosition >= observableItemsSource.Count)
carouselPosition--;
if (carouselPosition < 0)
carouselPosition = 0;

SetCurrentItem(carouselPosition);
UpdatePosition(carouselPosition);

Expand Down

0 comments on commit 9a84ec4

Please sign in to comment.