Skip to content

Commit 2ef173c

Browse files
committed
[iOS] Fixed hidden indicator
1 parent e121f8b commit 2ef173c

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/Core/src/Platform/iOS/MauiRefreshView.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,9 @@ bool TryOffsetRefresh(UIView view, bool refreshing)
7575
if (view is UIScrollView scrollView)
7676
{
7777
if (refreshing)
78-
scrollView.SetContentOffset(new CoreGraphics.CGPoint(0, _originalY - _refreshControlHeight), true);
78+
scrollView.SetContentOffset(new CGPoint(0, _originalY - _refreshControlHeight), true);
7979
else
80-
{
81-
// Restore the scroll position after a slight delay to ensure layout has stabilized
82-
DispatchQueue.MainQueue.DispatchAfter(new DispatchTime(DispatchTime.Now, TimeSpan.FromMilliseconds(100)), () =>
83-
{
84-
scrollView.SetContentOffset(new CoreGraphics.CGPoint(0, _originalY), true);
85-
});
86-
}
80+
scrollView.ContentOffset = new CGPoint(0, _originalY);
8781

8882
return true;
8983
}

0 commit comments

Comments
 (0)