Skip to content

Commit

Permalink
feat(scrollViewer): [Skia] Add support for SV.ChangeView (and scroll …
Browse files Browse the repository at this point in the history
…bars!)
  • Loading branch information
dr1rrb committed Aug 3, 2020
1 parent 8403fc2 commit d79c9fd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Uno.UI/UI/Xaml/Controls/ScrollViewer/ScrollViewer.Skia.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,21 @@ public Color BackgroundColor

private void UpdateZoomedContentAlignment() { }


partial void ChangeViewScroll(double? horizontalOffset, double? verticalOffset, bool disableAnimation)
{
if (_presenter is ScrollContentPresenter presenter)
{
if (horizontalOffset.HasValue)
{
presenter.SetHorizontalOffset(horizontalOffset.Value);
}

if (verticalOffset.HasValue)
{
presenter.SetVerticalOffset(verticalOffset.Value);
}
}
}
}
}

0 comments on commit d79c9fd

Please sign in to comment.