Browse Source

Merge pull request #10090 from AvaloniaUI/refresh_scrolling

pull/10096/head
Wiesław Šoltés 4 years ago
committed by GitHub
parent
commit
12fd3b83ee
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Avalonia.Controls/PullToRefresh/ScrollViewerIRefreshInfoProviderAdapter.cs

4
src/Avalonia.Controls/PullToRefresh/ScrollViewerIRefreshInfoProviderAdapter.cs

@ -169,9 +169,9 @@ namespace Avalonia.Controls.PullToRefresh
visualizerComposition.ImplicitAnimations = animation;
}
if(_scrollViewer != null && _scrollViewer.Content is Visual visual)
if(_scrollViewer != null)
{
var scollContentComposition = ElementComposition.GetElementVisual(visual);
var scollContentComposition = ElementComposition.GetElementVisual(_scrollViewer);
if(scollContentComposition != null)
{

Loading…
Cancel
Save