Skip to content

Commit

Permalink
Reset position when cleanup is called.
Browse files Browse the repository at this point in the history
  • Loading branch information
Haruma-K committed Aug 16, 2023
1 parent f3ac23c commit 4651c75
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 4651c75

Please sign in to comment.