From 4651c756eea7b63d250c7978b4e6eadc5006a1f0 Mon Sep 17 00:00:00 2001 From: Haruki Yano Date: Wed, 16 Aug 2023 19:04:27 +0900 Subject: [PATCH] Reset position when cleanup is called. --- Assets/FancyCarouselView/Runtime/Scripts/CarouselView.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/FancyCarouselView/Runtime/Scripts/CarouselView.cs b/Assets/FancyCarouselView/Runtime/Scripts/CarouselView.cs index 6972943..03e793d 100644 --- a/Assets/FancyCarouselView/Runtime/Scripts/CarouselView.cs +++ b/Assets/FancyCarouselView/Runtime/Scripts/CarouselView.cs @@ -208,6 +208,7 @@ public void Setup(IReadOnlyList dataList) UpdateContents(list); _scroller.SetTotalCount(DataCount); + _scroller.Position = 0; DataChanged?.Invoke(); if (_progressView != null) _progressView.Setup(DataCount);