Skip to content

Commit

Permalink
Merge pull request #13 from Haruma-K/feature/reset-position-when-cleanup
Browse files Browse the repository at this point in the history
Reset position when cleanup is called.
  • Loading branch information
Haruma-K authored Aug 16, 2023
2 parents f3ac23c + 4651c75 commit d225391
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Assets/FancyCarouselView/Runtime/Scripts/CarouselView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ public void Setup(IReadOnlyList<TData> dataList)

UpdateContents(list);
_scroller.SetTotalCount(DataCount);
_scroller.Position = 0;
DataChanged?.Invoke();
if (_progressView != null)
_progressView.Setup(DataCount);
Expand Down

0 comments on commit d225391

Please sign in to comment.