Skip to content

Commit

Permalink
Merge pull request AvaloniaUI#10004 from AvaloniaUI/pullrefresh_previ…
Browse files Browse the repository at this point in the history
…ewer_fix
  • Loading branch information
wieslawsoltes authored Jan 18, 2023
2 parents a5d23da + 85e7f38 commit 975c77d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Avalonia.Controls/PullToRefresh/RefreshVisualizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,11 @@ protected override void OnApplyTemplate(TemplateAppliedEventArgs e)
_content.Loaded += (s, e) =>
{
var composition = ElementComposition.GetElementVisual(_content);
var compositor = composition!.Compositor;
if(composition == null)
return;
var compositor = composition.Compositor;
composition.Opacity = 0;
var smoothRotationAnimation
Expand Down

0 comments on commit 975c77d

Please sign in to comment.